I Need Some Help With A PHP Script
If You Can I Would Like A Piece Of Code To Put In It:
After 3 Wrong Login Attempts To Not Allow Access To The Webpage
& If You Refresh It Will Load The Previous Webpage
–
So If Anyone Can Post A Suggestion Or More Preferred - A Piece Of PHP Script I Can Put In - Or Remake It For Me
I Would Be Most Obliged - Thank You 
–
[php]
Website Login <?php// Website Password
$password = “Admin”;
// Website Display
print "<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><h1 align=\"center\">Website Login</h1>";
// If The Password Is Valid - Let The User Access The Website
if ( isset ( $_POST[ “password” ] ) && ( $_POST [ “password” ] == “$password” ) ) {
print "<p align=\"center\">";
print "<b style=\"color: #00DD00;\">Login Successful!</b><br /></p>"; }
else {
// If The Password Is Invalid - Display An Error Message
if ( isset ( $_POST [ “password” ] ) || $password == “” ) {
print "<p align=\"center\"><font color=\"red\"><b>Incorrect Password!</b></font></p>"; }
print "<form method=\"post\"><p align=\"center\"><b>Please Enter Your Password To Login</b>";
print "<br /><br />";
print "<input name=\"password\" type=\"password\" size=\"25\" maxlength=\"10\">";
print "<input value=\" Login \" type=\"submit\"></p></form>"; }
?>
[/php]
