I have a textarea:
<form id='test'>
<textarea class='test2'> </textarea> <input type='submit' value='send'/>
</form>
I would like to know if there is a way to limit the number of times a user can submit the textarea (for example, 5 times per minute).
EDIT:
I would like to do that on client-side, in Javascript.
EDIT 2:
It is for a chat. I just don’t want people to be able to post too many messages within a small lap of time. So it’s not a problem if they refresh their page to get ride of the limit, the time they’ll take to do it is long enough…
You can store some variables:
Example