tork Posted November 28, 2014 Share Posted November 28, 2014 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? 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) 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
Archived
This topic is now archived and is closed to further replies.