Brind9562 Posted January 13, 2009 Share Posted January 13, 2009 Hi I am trying to set up a login page for my website. After login I want to redirect my user to the page they came from. Everything is working fine but when the previous page has 2 variables for example http://www.example.com/example.php?ID=1&cmd=2 the user only gets redirected back to http://www.example.com/example.php?ID=1, thus taking off the &cmd=2. Does anyone know why this may be and what I can do to stop it. Any help will be greatly appreciated. Thanks Ben Link to comment https://forums.phpfreaks.com/topic/140708-php-http_referer-problem/ Share on other sites More sharing options...
dennismonsewicz Posted January 13, 2009 Share Posted January 13, 2009 use this $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; http://us3.php.net/reserved.variables.server Link to comment https://forums.phpfreaks.com/topic/140708-php-http_referer-problem/#findComment-736453 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.