RE: login

From: Date: Mon, 11 Mar 2002 06:52:50 +0000
Subject: RE: login
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-17605@lists.php.net to get a copy of this message
I have not tested this but it should work... Adam <?php // this goes on the firt page if (!$admin){ Header("Location: logon.php?ref=" . $SCRIPT_NAME . "); } ?> this goes in the form area on login.php <input type="hidden" name="ref" value="<?= $ref ?>"> <?php // this goes on the login page after logged in and all is OK Header("Location: $ref"); ?> -----Original Message----- From: its me [mailto:fotna@egypt.net] Sent: Monday, March 11, 2002 4:27 PM To: php-db@lists.php.net Subject: login there is a page that when user go to need to be looged in,so it automaticaly go back with him to loggin page but after login i want him to go back to the page he was in.....how? using history()? and how. thanks guys Rehab M.Shouman ------------------------------------------------------------ ------------------------------------------------------------ --------------------------------------------------------------------- Express yourself with a super cool email address from BigMailBox.com. Hundreds of choices. It's free! http://www.bigmailbox.com ---------------------------------------------------------------------

« previous php.db (#17605) next »