Ok so what I want to happen is when a user is logged out my script should check the url for the code 2 and display to the user they have been logged out. If 1 There password or username was wrong and 3 Unsure how they got there. It pulls the correct number but will only display the message for 1. I don't know whats wrong :/
<?php
$err = $_GET['err'];
echo $err;//Proof the code is getting number
if ($err = "1") {
echo '<center><span class="error-box">'; echo "Whoops! Wrong Username or Password. Please try again.</span></center>";
}
elseif ($err = '2') {
echo '<center><span class="info-box">'; echo "You Have Been Succesfully Logged Out.</span></center>";
}
else {
echo '<center><span class="info-box">'; echo "Whoops! Somthing funny happened and were not quite sure what your trying to do. Please try again.</span></center>";
}
?>