tryingtolearn Posted July 4, 2007 Share Posted July 4, 2007 Hi all Hope this is a simple one that I am overlooking. I have a set of pages that use a redirect if the user is not logged in. It will send them to the login page, once logged in it returns them to the page they were trying to access. $_SESSION['redirect] = 'http://'.$_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; I have a contact section set up - when they get a response to a message they posted they get an email In the email it has a link - click here to read the response http://www.site.com/view_response.php?id=6 When they click the link, it redirects them to the login page but returns them to http://www.site.com/view_response.php How can I pass the id portion so it returns them to the message view rather than the main view page? Quote Link to comment Share on other sites More sharing options...
redarrow Posted July 4, 2007 Share Posted July 4, 2007 http://www.site.com/view_response.php?id=6 view_response.php page add a $_GET[' '] Quote Link to comment Share on other sites More sharing options...
tryingtolearn Posted July 4, 2007 Author Share Posted July 4, 2007 Perfect, thanks for the fast response. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.