Login Redirect?
Posted: Fri Mar 14, 2003 9:17 pm
Ok I have a login form in the navigation for my site. I want it so that whatever page a user logs in at, it will bring them back to that page after they log in. What do I need to do?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<input type="hidden" value=" <?=$thispage? > ">Code: Select all
<?
$thispage = $_SERVER['PHP_SELF'];
?>Code: Select all
$jumpto = trim($thispage);
header("location: $jumpto");