External form recaptcha not showing
Permalink
I have an external form block where I added recaptcha. The form loads and runs perfect except for the recapcha.
Here is my recaptcha added to my form.
Here is my action code:
...
I do not get any errors. Does anyone know how to integrate recaptcha to an external form?
Thanks
Here is my recaptcha added to my form.
<form name="contact_form" method="post" action=".../promotions/sp_miami_mailer.php"> <?php require_once('recaptchalib.php'); $publickey = "not listed"; // you got this from the signup page echo recaptcha_get_html($publickey); ?> <table border="0" width="380">
Here is my action code:
<?php require_once('recaptchalib.php'); $privatekey = "not listed"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); } else {
I do not get any errors. Does anyone know how to integrate recaptcha to an external form?
Thanks