I keep getting the message "The reCAPTCHA wasn't entered correctly. Go back and try it again.(reCAPTCHA said: incorrect-captcha-sol."
I have submitted it to my server, fatcow, and they tell me the issue is in the php coding, and I took the code from the code on http://code.google.com/apis/recaptcha/docs/php.html, so I figured that would work.
Right now, I've run out of ideas. I've tried various things, but I am not familiar with PHP.
Here is the code:
<?php
require_once('recaptchalib.php');
$publickey = "my public key"; // you got this from the signup page
echo recaptcha_get_html($publickey);
?>
I am inserting it into my html form ju开发者_如何学Gost before the end of my form. Any help would be appreciated.
First you need to go to http://www.google.com/recaptcha and sign up.
They'll give you a key you can put into the code to use their service.
Please read and understand how recaptcha works. It's only a 1-2 pages long to read.
As well, it gives instructions on HOW to use recaptcha. It's not complicated, and it's better to understand what you're using as oppose to not understanding.
Possibly similar to: Need help with reCAPTCHA - keep getting incorrect-captcha-sol
The page you linked to also said that the code you gave should be in a form with the action verify.php
and they gave the code that should be in that verification file. Do you also have that?
It's been 5 years OP, I sincerely hope you've figured out a solution. But for others like me who still get this cryptic message, I can tell you what resolved it for me. It turns out I was trying to implement the previous version of Google's recaptcha, version 1.0. When someone pointed that out to me and I ran through the instructions for version 2.0, the error message went away and the recaptcha displayed as expected.
Make ensure that your form submit with post not get. Ensure that your reCaptcha verified only once. Ensure that your reCaptcha keys are correct.
I found this online on another website.
Set your php setting allow_furl_open to yes... mine was set to no (allow_furl_open = YES)
Setting this in my fatcow settings allowed the ReCaptcha v2 to work... FINALLY.
Now I have found my email script isn't working.... always something...
Good luck!
精彩评论