Email Zipcode "; // Get a key from http://recaptcha.net/api/getkey $publickey = "6LfgqggAAAAAAKdVMW6bpRDc9Dby2UBPOed4Ijim"; $privatekey = "6LfgqggAAAAAAGmyVJtpEYiiavTEFwgDbA-oOXCa"; # the response from reCAPTCHA $resp = null; # the error code from reCAPTCHA, if any $error = null; ?>
 

Mail List Signup


".recaptcha_get_html($publickey, $error) ."

Please fill out both fields

"; $email=''; if(isset($_POST['email'])) { $email = clean($_POST['email']); if($email=='') { echo $notfilledout; exit; } } $comments=''; if(isset($_POST['zipcode'])) { $comments = clean($_POST['zipcode']); if($comments=='') { echo $notfilledout; exit; } } # was there a reCAPTCHA response? if (isset($_POST['recaptcha_response_field']) and $_POST["recaptcha_response_field"]) { $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if ($resp->is_valid) { echo "

Thanks for your submission.

"; $mes = "$email\r\n$comments"; include_once('/home/haka/php/mail.php'); mail($mailto,'Labyrinth Mailing List Form',$mes); exit; } else { # set the error code so that we can display it $error = $resp->error; echo $form; } } else { echo $form; } echo "
".recaptcha_get_html($publickey, $error)."
"; ?>