Ajax Contact Form with Validation from jQuery and Anti-bot service from reCaptcha
Dec
7
2009
Are you looking for an Ajax contact form, which can validate using jQuery, and uses anti-bot service from reCaptcha to prevent spamming. This is probably the right post for you. This script was originally created for tysoh.com (take a look at the demo). I have attached the full source code for your own testing too. However, there are 3 steps you will need to change before the form can work for you. Please see below:
1) Open up the file index.php, go to line 65, and change to your own reCaptcha public key. (You will need to sign up at recaptcha.net to get one)

2) Open the file ajax.recaptcha.php, go to line 8 and 9, and change to your own reCaptcha public and private key.

3) Open the file sendemail.php, go to line 7, and change to the desired email you want the form to forward to.

Further Modifications:
If you are slightly more ambitious, all the error and thank you messages can be configured under the file – submitform.js. And the theme for reCaptcha can be configure under the file – index.php.
Other Useful Resources:
jQuery Documentation
reCaptcha Documentation
Scripts Updates:
17/Jan/2010 – Version 1.2 released with bugs fixed


















