I have a search field that allows for searching a text file. If the entry is NOT formatted correctly, an alert is displayed. They only get to see the submit button if the field is correctly formatted.
What I want to do is to limit the number of times they can try to 4 attempts.
The input field is like this.
How do I code the cookie etc...etc... OR is there a better way to accomplish this.
<input type="text" name="codenumber" maxlength="16" size="16"onMouseOut="checkAlert()";/>
Maybe I can hide the input field in a DIV and check to see if that IP is banned before showing it.
I have never set cookies to do any of this before.
I DON'T want to have to go the server route & PHP if I don't have to.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)