View Single Post
  #7 (permalink)  
Old 04-30-2008, 08:29 PM
Orion's Avatar
Orion Orion is offline
WebProWorld Veteran
 

Join Date: Sep 2003
Location: Halton Hills, ON
Posts: 553
Orion RepRank 2
Default Re: Can I stop spammers filling in my form?

Quote:
Originally Posted by imvain2 View Post
Create a text field and name it, then wrap that field in a div with display:none.

Then in the server side form processing code, look to see if the form field myemail is empty, if its not empty then don't allow the form to be submitted.

Code:
<div style="display:none;">
<input type="text" name="myemail" value="">
</div>
OH WOW! Wicked solution! Any chance you or BJ can post the scripting that looks at the field and kills the submit?

I have a couple older sites that would benefit from this...
__________________
Ron Boyd
Web design & site management :: Ron's blog
Reply With Quote