The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Nice Simple Contact Form Re: Nice Simple Contact Form


I use reCaptcha for spam prevention. Simply sign up for an API key at and download the reCaptcha PHP library from

To add the reCaptcha to the contact form you simply add the following code (must be a .php file):


Then to verify the captcha you add the following before the email is processed:

$privatekey = “…”; // you got this from the signup page as well
$resp = recaptcha_check_answer ($privatekey,

if (!$resp->is_valid) {
die (“The reCAPTCHA wasn’t entered correctly. Go back and try it again.” .
“(reCAPTCHA said: ” . $resp->error . “)”);