I need a script that can disable the submit button on a form or prevent the form from being submitted when there is an illegal word or character in the text box. This should prevent a spam bot from sending links to me via my website's contact me function. Here is the form that I need to protect:
[HTML]
<form id="FormName" action="thehand ler.cgi" method="post" name="FormName" >
<p>Name: /Naam: <input type="text" name="name" size="24" /></p>
<p>Email: /E-pos: <input type="text" name="email" size="24" /></p>
<p>Message: /Boodskap:<br />
<textarea name="message" rows="4" cols="30"></textarea></p>
<p><input type="submit" name="Submit/stuur" value="Submit/Stuur" /></p>
</form>
[/HTML]
The message textarea is the field that should be checked. Unnecessary text were removed.