smerny Posted May 31, 2009 Share Posted May 31, 2009 if I want a login.php page to process log in name/password and then automatically go back to the previous page... what do i do? Link to comment Share on other sites More sharing options...
jlhaslip Posted May 31, 2009 Share Posted May 31, 2009 Store the previous page as a Session Variable and redirect to it after a successful log-in. Link to comment Share on other sites More sharing options...
smerny Posted May 31, 2009 Author Share Posted May 31, 2009 How do I do store the previous page as a Session Variable? Link to comment Share on other sites More sharing options...
jlhaslip Posted June 1, 2009 Share Posted June 1, 2009 You need to learn some php and check the manual.http://php.net/sessionsThey have a tutorial there, too. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 1, 2009 Share Posted June 1, 2009 You can use the referrer header to find out the last page someone was at to get to the current one. It's in $_SERVER['HTTP_REFERER']. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.