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? Link to comment https://forums.phpfreaks.com/topic/58448-solved-pass-a-variable-from-an-email-link/ 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[' '] Link to comment https://forums.phpfreaks.com/topic/58448-solved-pass-a-variable-from-an-email-link/#findComment-289821 Share on other sites More sharing options...
tryingtolearn Posted July 4, 2007 Author Share Posted July 4, 2007 Perfect, thanks for the fast response. Link to comment https://forums.phpfreaks.com/topic/58448-solved-pass-a-variable-from-an-email-link/#findComment-289826 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.