Grabeorama Posted January 18, 2010 Share Posted January 18, 2010 I am using a login system on my website. I have a form that sends the current page to the login page so when the user logs in, it redirects them back to the page they were on before the logged in. For that I am using $_SERVER['PHP_SELF'];It works fine until the page they were on before logging in was viewing an individual blog entry. It does not seem to carry the "?id=1&name=Name" is there a way of sending all the info of the page using something similar to $_SERVER['PHP_SELF']; ?Thanks Link to comment Share on other sites More sharing options...
justsomeguy Posted January 18, 2010 Share Posted January 18, 2010 Print all of $_SERVER to see what it contains:print_r($_SERVER);I believe REQUEST_URI is the one to use. Link to comment Share on other sites More sharing options...
Grabeorama Posted January 19, 2010 Author Share Posted January 19, 2010 Thanks that works perfectly, problem solved! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.