PHP URL's

This is a discussion on "PHP URL's" within the Starting Out section. This forum, and the thread "PHP URL's are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Apr 25th, 2007, 21:55
New Member
Join Date: Apr 2007
Location: UK
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
PHP URL's

I'm new to PHP but learning fast!

Simple, newbie question: PHP urls (i.e. mydomain.com/search.php?u=keyword ..... what is this called when I want an action from a particular URL?
Any resources that helps me understand what I can do with attributes within URLS?

Thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Apr 25th, 2007, 22:10
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP URL's

You can grab the stuff after the ? using $_GET[]

In this case, in your php you would get

PHP: Select all

$u $_GET['u']; 

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Apr 25th, 2007, 23:01
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP URL's

They're called query strings. If you don't have a specific question, Googling that will most likely give you a ton of resources.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Apr 26th, 2007, 04:55
New Member
Join Date: Apr 2007
Location: UK
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP URL's

Thats brilliant Guys, EXACTLY the info I was after :-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Apr 26th, 2007, 12:00
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP URL's

Quote:
Originally Posted by Ryan Fait View Post
They're called query strings.
Oh yeah ... ooops ... I forgot to give you the name for it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Apr 26th, 2007, 15:11
New Member
Join Date: Apr 2007
Location: Las Vegas
Age: 25
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP URL's

Thats excellent information guys! I could use this too.

Last edited by karinne; Apr 26th, 2007 at 15:17. Reason: Please create your own thread in the future.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
php, url

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
robots and hiding url's welshstew Search Engine Optimization (SEO) 12 Sep 2nd, 2007 16:52
creative automatic advertisements and building website URL's pureliving Starting Out 1 Jan 18th, 2007 23:47
loadMovie function (and absolute/relative URL's) DocBoy52 Flash & Multimedia Forum 1 Aug 26th, 2006 05:16
ReWriting URL's for IIS (script based) Rob Classic ASP 3 Jul 20th, 2004 13:46


All times are GMT. The time now is 21:01.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved