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

Hi.

How do you check username and password ?
DB login or ?

- Mitko Kostov

using db, mysql, so????

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

got it??

get it:

$correct="USERNAME";
$correct_password="PASSWORD";
if($user_name==$correct)
{
header('another page.php');
}
else
{
header('login.php');
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.