For all of you who don’t like using contact form plugins I have made available a php script I have been using throughout my projects. The package includes PHP as well as CSS and JS files. The code is commented so that you won’t get lost.
Input fields are validated and remember the text after the page reloads (e.g. when the form hasn’t been filled in correctly). ReCaptcha along with a special “blind” field prevent spam attacks. The HTML is 100% valid and displays correctly in all fairly modern browsers. Due to the addition of reCaptcha JS needs to be enabled on the users’ browsers.
Before you insert it on your site you will have to get reCaptcha private and public keys. Enjoy
Last update: 22nd Nov, 2011