PHP contact form

Out of context: Reply #9

  • Started
  • Last post
  • 13 Responses
  • adev0

    Your only guard against spambots is the post button?

    A little trick I've recently started doing is added a input text field into the form, then hiding with javascript when the dom is ready. In PHP I then do a check to see if a bot fills any text into this field (usually it's name is "fax" or something generic a bot might think is a real field). It really cut down on the fake emails coming through.

    Works until the spam bots start parsing the JS code....

View thread