Page 1 of 1

[SOLVED] URL variables

Posted: Thu Feb 07, 2008 7:17 pm
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

Re: URL variables

Posted: Thu Feb 07, 2008 7:25 pm
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.

Re: URL variables

Posted: Thu Feb 07, 2008 7:28 pm
by benyboi
Thats what i was talking about, THANK YOU!!! :D