quote:
Originally posted by king_of_cool_kids
ok, well, basicly, I want something (php) that will disable the submit button once clicked
Hmm... well, because PHP is server-side, it can't disable the submit button right away like javascript can. The user would have to reload the form before the submit button could be disabled.
quote:
Originally posted by king_of_cool_kids
and have a time span of 3 mins between submitions.
Are you sure that's enough? Someone could spam you with almost 20 messages per hour if they were determined...
If you use the cookie-based method, you could simply set a cookie with a 3-minute expiration time. With the other method, you'd have to store a time on the server along with the IP.