2004-08-07, 05:51 AM
Edit:
Ok. I have a contact form on my site, and have a JavaScript code to stop multiple submitting in one go. However, recently I have been getting lots and I think it may be because people have JavaScript turned off in their browser. I was talking to a friend this morning, and he said that the same effect could be done using php, and that it is more secure and reliable.
Thanks to Ddunk over at the MsgPlus! boards, I am now using this code:
Thanks in advance.
k776
Ok. I have a contact form on my site, and have a JavaScript code to stop multiple submitting in one go. However, recently I have been getting lots and I think it may be because people have JavaScript turned off in their browser. I was talking to a friend this morning, and he said that the same effect could be done using php, and that it is more secure and reliable.
Thanks to Ddunk over at the MsgPlus! boards, I am now using this code:
<script type="text/javascript">
<!--
document.write('<input type="button" value="Submit" onclick="validateForm();">');
-->
</script>
<noscript><center>Sorry, you need javascript<br>turned on to use this form</noscript>
It works for accedental spam, but still, for spammers, all they have to do is load the page, then turn javascript off. Does anyone know of a code to make it check javascript is on after the user clicks submit, not when the page loads??Thanks in advance.
k776