As the title states, I'm unable to match variable $user
with variable $_POST['username']
.
I've tried echoing the two variables, their outcome is exactly the same.
if ($user==$_POST["username"] ) {
echo"Sucessfully logged in as ".$user;
}
else{
echo'Unable to log you in!';
}
Not much more to say, really.