Hi,
I am using the following code to retrieve the full url in the address bar:
$host = $SERVER['HTTP_HOST'];
$self = $SERVER['PHP_SELF'];
$query = !empty($SERVER['QUERY_STRING']) ? $SERVER['QUERY_STRING'] : null;
$url = !empty($query) ? "http://$host$self?$query" : "http://$host$self";
Although, it doesn't seem to include variables on the end of the url.
For example, in a url like the one below:
http://www.phpbuilder.com/board/newthread.php?do=newthread&f=2
I'd like to also retrieve the "do=newthread&f=2" where at the moment it is only retrieving the "http://www.phpbuilder.com/board/newthread.php"
Thanks for any help,
~Oni.