Login Re-direct
Posted: Thu Jan 26, 2012 11:13 pm
Hi all,
I have created a basic login PHP script that requires a username and password. The script is written using If statements. What I would like to happen is that once a user logs in that he/she be automatically re-directed to a memmebr page. Right now the user needs to click a word/button in order to proceed I would like to skip that step and have them go straight to the member page after they press login.
Basically I am looking to replace the following lines with a re-direct code
if ($username==$dbusername&&$password==$dbpassword)
{
echo "Ckick <a href='Success.php'>here</a> to access members page";
$_SESSION['username']=$dbusername;
}
Thank You
I have created a basic login PHP script that requires a username and password. The script is written using If statements. What I would like to happen is that once a user logs in that he/she be automatically re-directed to a memmebr page. Right now the user needs to click a word/button in order to proceed I would like to skip that step and have them go straight to the member page after they press login.
Basically I am looking to replace the following lines with a re-direct code
if ($username==$dbusername&&$password==$dbpassword)
{
echo "Ckick <a href='Success.php'>here</a> to access members page";
$_SESSION['username']=$dbusername;
}
Thank You