[SOLVED] URL variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
benyboi
Forum Commoner
Posts: 80
Joined: Sat Feb 24, 2007 5:37 am

[SOLVED] URL variables

Post by benyboi »

Sorry if this has been posted before but i had no idea what this is called so here goes:

How does http://anonym.to/? get a vairable that has no name? I am particularyily interested in this as i would like to pass a URL through a variable to a php page but because the URL contains &'s PHP thinks they are more variables...

So how can i ask for entire string after the "?"?

Thanks!
Ben
Last edited by benyboi on Thu Feb 07, 2008 7:29 pm, edited 1 time in total.
GuitarheadCA
Forum Newbie
Posts: 20
Joined: Fri Jul 13, 2007 12:59 am

Re: URL variables

Post by GuitarheadCA »

I don't really understand the first part of your question, but I can answer the second part.

$_SERVER['QUERY_STRING'] will pull the string of variables after the '?' from your url.
benyboi
Forum Commoner
Posts: 80
Joined: Sat Feb 24, 2007 5:37 am

Re: URL variables

Post by benyboi »

Thats what i was talking about, THANK YOU!!! :D
Post Reply