Hi Drummin, thanks. Where is this code? I only have a link href pointing to the recaptcha as google suggested and the html div calling the captcha.
THe sourcecode is on the page ofc. Can you advise please?
I’ve never used Google recaptcha. Did you download the recaptchalib.php file. Have the JS and iframe sections added and the suggested code added to your php form page?
require_once('recaptchalib.php');
$publickey = "YOUR_PUBLIC_KEY"; // You got this from the signup page.
echo recaptcha_get_html($publickey);
When your users submit the form where you integrated reCAPTCHA, you’ll get as part of the payload a string with the name “g-recaptcha-response”. In order to check whether Google has verified that user, send a GET request with these parameters:
URL: https://www.google.com/recaptcha/api/siteverify
secret(required) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
response(required) The value of ‘g-recaptcha-response’.
remoteip The end user’s ip address.
What do they provide to you? It appears you send a get requests (probably with JS) and it returns a true,false reply.
Do you get examples of how to implement their code?