New User
joined:Jan 30, 2013
posts: 33
votes: 0
Please, explain or give link how to pass php variable to ajax?
php $ifloggedin = $_SESSION['loggedin'];
in ajax
if $ifloggedin equals to 1, then redirect
like here
if($ifloggedin == 1) {
window.location = "login-success.php";
}
but it does not work... i do not understand