AJAX Contact form (with captcha)

Captcha image
If you cannot crack the captcha, click on the image once to reload a new one.

Just a simple ajax contact form with a sleek captcha check. All the fields are mandatory. You can, refresh the CAPTCHA by clicking on the image. The submit button is disabled if the captcha is found to be correct, to prevent mass mailing.

Just edit the predefined constants in the file 'includes/mailer.php' with your favourite text editor and you're ready to go (I'll try writing a readme in the future). I'm trying to make this script a wordpress plugin at the moment.

Thanks goes to Psyrens for the AJAX Captcha & SecondVersion from NamePros.com for the PHP backend. With the help of SecondVersion's PHP Backend the message, email, name and subject is sanitized before being sent and the email ID's structure is also verified.

Download it here or read about it at my blog.

Script coded partially by Surya.