I have been working is a website I have been dealing with a problem from a while, and now I know why it is happening, but not how to solve it. Please help!!
Page 1: In
use session in the start in first page, like this. Hopefully this will work
";
echo"alert('Oops.Username Or Password Incorrect!');window.location.href='login.php';";
echo"";
}
else
{
$_SESSION['id']=$row['id'];
$_SESSION['message']=$user;
$_SESSION['logout']="";
$id=$_SESSION['id'];
echo"";
}
}
?>