conditions are met.you may include a auth.php page in any
page.this auth.php handles login and if login username
and password are matched then the user will be redirected
to the member home page using 'header' - the codes shown -
Collapse
if($password == $passwordtext)
{
$_SESSION["userid1"] = $id1;
header("Location: https://mysite.com
/members/index.php"); // redirects
}
else
{
unset($_SESSION["userid1"]);
$_SESSION["msg"] = "<li>Login Info - Username
/Password: Incorrect Combination try again</li>";
}
0 Komentar untuk "Redirecting To A Page After Login In PHP"