Is it possible to pass php variable to ajax?
I try to make redirection after successful login.
In php if password and user match, then $_SESSION['loggedin'] = 1;
$ifloggedin = $_SESSION['loggedin'];
In ajax would need something like this
if($ifloggedin == 1) {
window.location = "login-success.php";
}
but seems something wrong.
Could someone explain or give link where I can read about the question?
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks