i hava a question about how to limit user login, if user always fail to login. I mean, i want to limited user attempt to login 3 times after that user can login again after 15 minutes.
this is my source :
<?
if($submit)
{
$name=$_POST["name"];
$pass=$_POST{"pass"];
$query=mysql_query("select * from user where name='$name' and pass='$pass'";
$data=mysql_fetch_array($query);
if($data)
{
$_SESSION['name']=$name;
$_SESSION ['pass']=$pass;
header("Location:index.php");
}
else
{
echo "Sorry, about this problem....";
}
}
else
{
header("Location:login.html");
}
?.>
what should i add to my source code to limited user attempt login ??
sorry about my english
thanx b4...
