Page 1 of 1

Finding the whole address

Posted: Sun Sep 17, 2006 1:28 pm
by Citizen
When I use

Code: Select all

$link = $_SERVER['PHP_SELF'];
it comes up as just the base link like

Code: Select all

www.domain.com
but i want to find the whole address, so that it comes up as

Code: Select all

www.domain.com/arcade.php?variable=9
so that i can add more variables without losing the old one

so that i can use

Code: Select all

$link&variable2=3

Posted: Sun Sep 17, 2006 1:33 pm
by feyd
We've had just-a-few™ discussions on this. :?

search.php?search_keywords=geturl

Posted: Sun Sep 17, 2006 3:43 pm
by Zoxive

Code: Select all

print_r ($_SERVER);
-NSF