hi i am learning how to make a user login script in php. And I wrote a html page and 2 php pages. Visitors will access through html page using their password and username... And when click on submit then the second page will process it .... I make one like this ...
process.php page
$username=$_POST['username'];
$password=$_POST['password'];
if ($username=="some" && $password=="some"){
header('Location: ' . mypage.php);
}else
header('Location: ' . incorrectpage.php);
Please let me know is it ok ? or any change ??? Please help me ...