PDA

View Full Version : Checking userid in a form using external .js files



Rockonmetal
05-08-2007, 09:24 PM
I have this form, I want one of the inputs to have a onblur feature where it checks to see whether the username they entered is correct with the corrisponding username and password.
HERES THE CATCH!
AFTER 5 TRIES IT NO LONGER DISPLAYS WHETHER THE PERSON WAS CORRECT OR INCORRECT WITH THE ATTEMPT. if you can put something in there that tells that it was disabled because of 5 tries or something like that...
oh, and it can't be a prompt...

thanks alll

Rockonmetal
05-08-2007, 09:26 PM
Oh, if you can't get it to do the five tries thing, its ok,

Twey
05-08-2007, 09:40 PM
You can use my encrypted password script (http://www.twey.co.uk/?q=encpass); add these lines to the top of passCheck() to do the five-tries thing:
if(passCheck.tries && passCheck.tries > 5) return false;
passCheck.tries = (passCheck.tries || 0) + 1;