Re: [PHP] Using HTTP Referer

2002-09-11 Thread Henrik Hudson
Since you're checking to see if people are logged in and then sending them to the login page if they're not...I would pass, via GET, the page they are on when they were checked for being logged in and then the script on your login page would take that GET and embed it into the POST form. When t

RE: [PHP] Using HTTP Referer

2002-09-11 Thread Craig Vincent
The problem I'm having right now is that after the user is logged in, the login.php can never send it back to the page the user came from, it will just redraw the login.php page. Obviously, $_SERVER['HTTP_REFERER'] contains the location of itself instead of the location of the page sent the user

RE: [PHP] Using HTTP Referer

2002-09-11 Thread Martin Towell
set a hidden form element to be the referring page url, then use that to redirect the user eg: then use: header("location: $myReferer"); remember, also, that $_SERVER['HTTP_REFERER'] is not always set, so you'll need to cater for that Martin -Original Message- From: Jiaqing Wang [mail