PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Oct 17, 2018 9:36 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Nov 28, 2014 4:33 pm 
Offline
Forum Newbie

Joined: Sun Nov 23, 2014 10:26 am
Posts: 15
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?


Top
 Profile  
 
PostPosted: Fri Nov 28, 2014 4:46 pm 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6424
Location: Montreal, Canada
Syntax: [ Download ] [ Hide ]
        if (trim($answers [success]) == true) {

should be
Syntax: [ Download ] [ Hide ]
        if (trim($answers ['success']) == true) {

_________________
Supported PHP versions No longer supported versions


Top
 Profile  
 
PostPosted: Fri Nov 28, 2014 4:52 pm 
Offline
Forum Newbie

Joined: Sun Nov 23, 2014 10:26 am
Posts: 15
Celauran. Perfect. Thanks :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group