Hi
I need to extract the full url including any trailing vars in a query string.
say my url is www.mysite.com/something.php
$myUrl = 'http://'.$SERVER['HTTP_HOST'].$SERVER['PHP_SELF'];
will correctly return: 'www.mysite.com/something.php'
but if my url is say: www.mysite.com/something.php?var1=blah&var2=blahblah&var3=whatever
using $myUrl = 'http://'.$SERVER['HTTP_HOST'].$SERVER['PHP_SELF']; is still only gonna give me 'www.mysite.com/something.php'
Anybody know a snippet of code to get the full url?
cheers