User Redirection if login fails
| From: | Harlequin | Date: | Thu, 08 Jul 2004 14:01:38 +0000 |
| Subject: | User Redirection if login fails | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-189962@lists.php.net to get a copy of this message | ||
Hi again.
My code simply asks for a username and password but even if they insert
incorrect details the called page is displayed.
How can I get them to be redirected to another page if their login
information is incorrect...?
echo "<p><h2>registerd users login here please...</p></h2>";
echo "<form action = 'members/index.php' method='POST'>";
echo "<pre>UserID:\t\t<input type = 'text' name =
'TXT_UserID'></pre>";
echo "<br><br>";
echo "<pre>Password:\t\t<input type = 'password' name =
'TXT_UserPassword'></pre>";
echo "<br>";
echo "<pre>\t\t<input type='submit' value='Submit
Details'</pre>";
echo "</form>";
--
-----------------------------
Michael Mason
Arras People
www.arraspeople.co.uk
-----------------------------