Ok, I am makign a little security thing, and I need to be able to basically get the entire GET string, but I need it just how it is in the user's browser url. This is so that I can redirect to that exact url when they are logged in..
How can I go about doing that?
PHP-How to get the "end" of the URL?
I think that you could use $_SERVER['REQUEST_URI'] which gives you the entire address line after the domain name ie
would give
Then you could just look for the question mark and the rest of the string would be the GET parameters.
Code: Select all
http://www.google.com/seach?something=something
Code: Select all
/search?something=something