0){ while($row = mysqli_fetch_assoc($result)){ if(($row['txtEmail'] == $usrEmail) && ($row['txtPassword'] == $usrPassword)){ //20190620 - If the login entered details are correct this variable will be true then immediately break out. $correctDetails = true; break; } } }else{ echo ""; } //20190620 - Redirect to userForm.php page once the user login detail have been correctly verified else it will display an error message echo ($correctDetails) ? header("Location: userForm.php") : ""; } ?> Login form

Login

Login in to access the system!

Register as a new user