0

hi, tkx
bt i again need ur help guyz!
im using a form with post method! bt i want wen the username and password r correct it opens another page, else it comes back to the login!
plz
watinf
thkx

4
Contributors
5
Replies
6
Views
10 Years
Discussion Span
Last Post by Pro2000
0

ei,try this::
if (username and password are correct){
header('location:another page.html');
}
else{
header('location:login page');
}

got it??

0

get it:

$correct="USERNAME";
$correct_password="PASSWORD";
if($user_name==$correct)
{
header('another page.php');
}
else
{
header('login.php');
}

Edited by happygeek: fixed formatting

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.