Forum Moderators: coopster
Currently, when a user logs into my site, they are directed to a specific page upon success. Now that I have added some depth to my site, I want users to be able to login from any page, and when the login program executes, they are brought back to same page they were at, but in a logged in state.
I believe I can do this by adding a variable that gets called by the header in my login program...I am just unsure how to do so.
Here is what I got...
This is on every page when the user is not logged in...
<b>You are not logged in!</b>
<a href="Login2006.php"><font color="#FFFFFF">Login</font></a>
<br>
here is my header on the login page...
header("Location: welcome.php");
How can I get this header to reflect the referring page?
Thanks!