Is there a simple way to get PHP_SELF complete with the GET args for that page (ie the arguments that you will see in the address bar) without having to parse the $_GET array and construct the args String yourself?
Hmm, does this only get filled in when a page is submitted from a form?
I've tried using $_SERVER['REQUEST_URI'] and it's empty. Ah well, no matter. I've used an alternative method now. ($_SERVER[QUERY_STRING])
Yes, PHP can only populate the elements of $_SERVER it knows how to populate. This is true for all if its superglobal arrays. For example, $_FILES will always be there, but unless you've uploaded a file, it will be an empty array. ______________________________________________________________________
TANSTAAFL!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.