Jump to content

[SOLVED] pass a variable from an email link


tryingtolearn

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.