Jump to content
MakeWebGames

recaptcha problem


PHPDevil
 Share

Recommended Posts

hi guys, I have a issue i believe with my recaptcha on my email page.

i downloaded the script and installed it and ran it properly. it shows up but my problem is at the checking part in which it always says it fails.

for the actual checking i have this

 

require_once('recaptchalib.php');
         $privatekey = "FILTERED OUT";
   $resp = recaptcha_check_answer ($privatekey,
                                   $_SERVER["REMOTE_ADDR"],
                                   $_POST["recaptcha_challenge_field"],
                                   $_POST["recaptcha_response_field"]);



if (!$resp->is_valid) {
                 $error_string .= '<center>The reCAPTCHA wasnt entered correctly. Go back and try it again.</center><br />';
       }
   else if ($user == '') {
   $error_string .= '<center>You left the Username field blank!.</center><br />';
   }

 

would be grateful if anyone can see the issue.

I also had this error mes

PHP Fatal error: Call to undefined function recaptcha_check_answer()

that stopped after i changed require_once to require and back again.

not sure whats going on here

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...