tork Posted November 28, 2014 Share Posted November 28, 2014 (edited) I'm implementing google's reCAPTCHA V2. It works almost perfectly except for the following error located in the recaptchalib.php: Notice: Use of undefined constant success - assumed 'success' in (script location) https://github.com/google/ReCAPTCHA/blob/master/php/recaptchalib.php Anyone got an idea how to fix this? Edited November 28, 2014 by tork Quote Link to comment https://forums.phpfreaks.com/topic/292781-google-recaptcha-use-of-undefined-constant/ Share on other sites More sharing options...
tork Posted November 28, 2014 Author Share Posted November 28, 2014 Solution: if (trim($answers [success]) == true) should be: if (trim($answers ['success']) == true) Quote Link to comment https://forums.phpfreaks.com/topic/292781-google-recaptcha-use-of-undefined-constant/#findComment-1497971 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.