I want it to redirect the user based on the if statements, but it doesn't seem to work. Any ideas?
<?php
$username = $_POST['username'];
$password = $_POST['password'];
if ($username == 'co323'){
if($password == 'marking'){
$link = "menu.php";
}
else{
echo "Wrong Username/Password";
$link = "loginform.html";
}
}
else{
echo "Wrong Username/Password";
$link = "loginform.html";
}
header($link);
?>