Login Previous Page
Posted: Tue Dec 22, 2009 4:50 pm
Hey guys,
I have a script I've written and it's working except for 1 problem, if I try and use the $_SERVER['HTTP_REFERER']; to send it back to the previous page, it takes me to a blank page w/ nothing on it. If I set my variable to say, google.com it works fine.
Basically I want the person who logs in to be sent back to the page they came from.
Any help would be greatly appreciated.
Thanks
I have a script I've written and it's working except for 1 problem, if I try and use the $_SERVER['HTTP_REFERER']; to send it back to the previous page, it takes me to a blank page w/ nothing on it. If I set my variable to say, google.com it works fine.
Code: Select all
$ref=$_SERVER['HTTP_REFERER'];
header( 'Location:' . $ref );Any help would be greatly appreciated.
Thanks