login page: login.php (name and psswd)
messages page: message.php
main page(when login is success): main.php
so the code will look like:
if(($name="valueA") and ($passwd="valueB"))
{
// log to the main page
header("location: main.php");
}
else
{
// go to the message page with an
// argument like msg
$msg = "error on log...back";
header("location: mesages.php?m=$msg");
}
that's it. But it really dpends on what you want to do....bye