Recaptcha does not send email and redirect to recaptchalib.php

12 views
Skip to first unread message

STUDIO PEÑARROYA

unread,
Nov 23, 2009, 6:53:02 AM11/23/09
to reCAPTCHA
Hi everyone! I am lost... heres my trouble... I have included my
recaptcha in my form.php and everything is fine but when I type the
characters shown in the recaptcha (and all the characters introduced
are fine), my page is redirected to http://www.myweb.com/RECAPTCHALIB.PHP???
why is that??
I have uploaded 3 .php files to my server (and all of them are in the
same place, not in different folders): “FORM.PHP” + “PROCESS.PHP” +
RECAPTCHALIB.PHP”… here´s my doubt… are the 3 files necessary?? what
am I doing wrong?
_________________________________________________

My form mail.php has this code before the submit button:
<?php
require_once('recaptchalib.php');
$publickey = "6LesbgkAAAAAAB6JI6dRdVbZ-xWGxzGJ2tllBdsM"; // you got
this from the signup page
echo recaptcha_get_html($publickey);
?>
_________________________________________________

The procces.php file´s code is:
<?php
require_once('recaptchalib.php');
$privatekey = "6LesbgkAAAAAAF56Dn9xiYebdrmPFfY0w4_vz3lw";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
die ("The reCAPTCHA wasn't entered correctly. Go back and try it
again." .
"(reCAPTCHA said: " . $resp->error . ")");
}
?>
____________________________________________________________________________________________
____________________________________________________________________________________________

Some ideas what am I doing wrong??
Thanks in advance
Reply all
Reply to author
Forward
0 new messages