Harlequin wrote:
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...?

How are you checking the result? From a db? If so, run your query before any output to the browser on the page where your form is posted too (ex. SELECT * FROM users WHERE name = '$name' && password='$password'). If your query returns no results, redirect them with the header() function.


--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to