I have
How can i alter this so that if admin logs in, it takes him to admin area, and if client logs in, it takes them to client area.
Code:
<?
$adminuser = "admin";
$clientuser = "client";
$adminpass = "admin";
$clientpass = "client";
if ($user == $adminpass&&$pw == $adminpass || $user == $clientuser&&$pw == $clientpass)
{
header("Location: http://my-website.com/partner_area/partner_area.php");
}
else
{
print("Wrong username or password. Please try again.");
}
?>
How can i alter this so that if admin logs in, it takes him to admin area, and if client logs in, it takes them to client area.




