I am using _SERVER['PHP_SELF']; to get the current page name -- How can I get it to also include the querystring at the end and domain at the beginning?
Do a print_r on the $SERVER, and you should find what you want. I believe you'd use the HTTP_HOST for the domain. As far as what is in the query string, it's all in the $GET array.
print_r($SERVER); print_r($GET);
Here's the code $SESSION['currentpage']=$SERVER['PHP_SELF'].$r($GET);
and here's the error -- what am I doing wrong?