I have simple login form that takes the username and password from a user, this submits to a page which checks ths user, if there is a problem it re directs to the original form but with a Query String variable with a error code ie:
User name is wrong ----> redirects to
http://localhost/login_form.php?errortype=1
I then have within the form the folowing code within a table cell:
If (!$loginerror){
}else{
If ($loginerror == 1){
echo "<div align=\"center\"><font color=\"#FF0000\" face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><b>Please enter a Username and Password.</b></font></div>";
}
If ($loginerror == 2){
echo "<div align=\"center\"><font color=\"#FF0000\" face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><b>Your account has not been activated. Contact admin.</b></font></div>";
}
If ($loginerror == 3){
echo "<div align=\"center\"><font color=\"#FF0000\" face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><b>You have been logged out. Please re-login</b></font></div>";
}
} ?>
The problem is that it just display all the errors, i have tried many thing including just using one = sign
Many Thanx
Marcus