If a user is trying to log in with an account thats not confirmed or if the password is incorrect it'll come up with a little error box to tell them when the page reloads.
When the login script is run and I try to log into an account that isn't confirmed yet I return it with this url
signin.php?error=no_confirm
When the page reloads however it has the correct url but nothing happens! Do I have the code below set up correctly?
<?php
$error = $_GET['error'];
echo $error;
if ($error) {
if($error == 'mismatch') {
echo "
<div class='alert alert-danger' role='alert'>
<strong>Oh snap!</strong> You need to confirm your account before you sign
in!
</div>
";
} elseif ($error == 'no_confirm') {
echo "
<div class='alert alert-danger' role='alert'>
<strong>Oh snap!</strong> Youre username or password was incorrect.
</div>
";
} else {
echo "";
}
} else {
echo "nov";
}
?>