Page 1 of 1

file.php?var_value instead of file.php?variable=var_value

Posted: Wed Aug 04, 2004 6:38 am
by RSimpson
Hi folks,

I've been noticing that some sites are using urls similar to this: http://www.somesite.com/[i]index.php?home[/i]
Does anybody know how I would go about implementing this? I've tried just using $_GET as a stand alone variable but that didn't work, I also tried using $_GET[0] in case it had assigned the value to the first element in the array but again no such luck.

If anybody can help me out it would be greatly appreciated. :)


Cheers,
Robert

Posted: Wed Aug 04, 2004 6:39 am
by feyd

Code: Select all

$_SERVER['QUERY_STRING']

Posted: Wed Aug 04, 2004 6:47 am
by RSimpson
Thanks that did the trick :D


Cheers,
Robert