jackttcoms / PHP-Google-reCaptcha-Class

A simple PHP class for the V3 of Google reCaptcha
Apache License 2.0
0 stars 0 forks source link

How to properly use render() function? #1

Open ProxyUserGeo opened 5 years ago

ProxyUserGeo commented 5 years ago

Hi Jack,

I found your very useful code from https://stevencotterill.com/articles/adding-google-recaptcha-v3-to-a-php-form but I'm having trouble on how use the render() function from reCaptcha.php, when I'm calling it like this <script> <?php $reCaptcha->render(); ?></script> it return an error of Uncaught ReferenceError: grecaptcha is not defined

jackttcoms commented 5 years ago

Oh hi, sorry for long reply. I will update it to the latest version tomorrow and that should fix the issue.