That javascript probably only works until the page is refreshed... someone could send one, refresh the form, paste the message back in, send another, and so on.
quote:
Originally posted by king_of_cool_kids
a) Is this true
PHP being more secure and reliable than javascript? Yes, definitely.
quote:
Originally posted by king_of_cool_kids
b) ... how can I go about implementing it on my site??
You want to stop the same person from submitting 2+ messages in a row? Does your contact script store anything on the server or just send an e-mail? If nothing is stored, the easiest method is probably setting a cookie, but that's not really secure, because the submitter could reject or delete it.
A more secure method of duplicate-checking would be storing the submitter's IP address on the server (in a text file or database) and then checking/updating it next time a submission is made.