5 Ways to Handle Forms on Your Static Site

For my own sites I prefer to do everything on my own server. For contact forms I use a simple PHP script that is part of my Zen theme.

To handle spam I use a two very simple things.

  1. A fake hidden field. If filled in it’s a spam boot.
  2. A JavaScript that switch in the correct form submit path when the user moves the mouse or hit the tab key.

Surprisingly effective! And real users see no annoying captchas.

A crud solution, but it works.

2 Likes