I found this neat little java script that counts the number of times a user\'s pass word has been denied.
I know how to modify parts of it in php but keeping track of the history is difficult in making the transition.
Here is the script.
<!-- THREE STEPS TO INSTALL THREE TRIES:
- Put the first code into the HEAD of your HTML document
- Change protectedpage.html to your protected page
- Add the final code to the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the BODY of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE=\"JavaScript\">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function password() {
var testV = 1;
var pass1 = prompt(\'Please Enter Your Password\',\'\');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1 == \"password\") {
alert(\'You Got it Right!\');
<!-- STEP TWO: Change protectedpage.html to your protected page -->
// Change the following URL to your protected filename
window.open(\'protectedpage.html\');
break;
}
testV+=1;
var pass1 =
prompt(\'Access Denied - Password Incorrect, Please Try Again.\',\'Password\');
}
if (pass1!=\"password\" & testV ==3)
history.go(-1);
return \" \";
}
// End -->
</SCRIPT>
</head>
<!-- STEP THREE: Copy the last code into the BODY of your HTML document -->
<BODY>
<CENTER>
<FORM>
<input type=\"button\" value=\"Enter Password Protected Area\" onClick=\"password()\">
</FORM>
</CENTER>
<p><center>
<font face=\"arial, helvetica\" size=\"-2\">Free JavaScripts provided<br>
by <a href=\"http://javascriptsource.com\">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 1.10 KB -->
I would greatly appreciate any and all assistance!
Thanks in advance for your help!
Happy Holidays,
Heather