I looked all over the web, and i just cant find the answer.. how can i do this? I want that when the user inputs an invalid username or password my page would automatically redirect to the log.in page..
a snippet of the problem area..
the warning is at
line 13 is the if statement.. i tried suppressing the warning, but it still wont work!.. :( any ideas??
a snippet of the problem area..
Code:
if(!($dbh=@mysql_connect($host,$username,$password)))
{ header('Location:index.html');
//print "<a href=http://localhost/pms/index.html>Back to login.</a><br>";
//print "access denied.";
}
(output started at C:\xampp\htdocs \PMS\login.php: 2) in C:\xampp\htdocs \PMS\login.php on line 13
Comment