note 16712 deleted from ref.http by jimw

From: Date: Sat, 10 Nov 2001 23:19:57 +0000
Subject: note 16712 deleted from ref.http by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20672@lists.php.net to get a copy of this message
If there is a page where a user shouldnt be without username and pass, the admim/webmaster might want to add a small, simple re-direction script. For example if sumone trys login-in into a 'admin panel' of some sort, and the username and/or password is wrong, the user would get re-directed back to the login.php page... ---------------------------------------- <?php print "<b><center><font face=arial size=4 color=black>Sorry, you are either not authenticated to be in this area, or you have no logged in</b></center></font> <center><font face=arial size=1 color=black>Please white while you get re-directed, or click <a href=\"login.php?\">here</a></font></center> <script language=javascript> <!-- setTimeout(\"document.location.href=\'login.php?\';\", 2500); //--> </script> ?> ---------------------------------------- However, cookies will be involved to see if the username and password match whats on the file.

« previous php.notes (#20672) next »