Forum Moderators: coopster
assuming the username was posted to your script froma form and the text field was named username, this would send them back to a script named login.php located in the same directory.
You could always just reinclude the login form on error as well.
[edited by: jatar_k at 12:51 am (utc) on Nov. 13, 2003]
if($field[user]!=$nuser or $field[pass]!=$npass or $field[email]!=$nemail)
{
echo"<h2 id=\"loginhead\">Please login to continue:</h2>\n";
echo"<h3 id=\"loginhead\">Wrong login details, please try again:</h3>\n";
echo login_form();
}
Thats a snippet of my login area for something, the vars are checked from a database (the user inputs on the form) so you would have to modify it to your needs.
Hope that helps to some extent.... just hope i get a reply to my post.