Help me with reCaptcha

A

Anonymous

Guest
Hello,
I'm a .net intermediate developer with no knowledge of php unfortunately.
However, there's a very simple script here to embed reCaptcha to my website:

https://phppot.com/php/php-contact-form-with-google-recaptcha/

I've embedded and it's showing on my website correctly, I just can't check the response:
All provided sample files are uploaded but on this line of contact.php:

$recaptcha = new ReCaptcha\ReCaptcha("secret_key");

I get this error_log:
PHP Fatal error: Uncaught Error: Class 'ReCaptcha\ReCaptcha' not found in /home2/mainUSER/public_html/site.com/contact.php:50

Can't figure out, please help :(
 
On the page you link to, there’s a link to the explanation :

“ For using this library, we need to get the API keys by registering our site. If you want to know how to to get the reCaptcha API keys, then the steps that we have discussed in a previous article will be helpful.”

https://phppot.com/php/how-to-get-google-recaptcha-site-and-secret-key/
 
Back
Top