Welcome to WebmasterWorld Guest from 35.172.195.49

Forum Moderators: open

Message Too Old, No Replies

ReCaptcha code with an error

     
11:19 am on Jun 16, 2015 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2006
posts: 1108
votes: 1


I have tested validation to be used by ReCaptcha.
API uses link <script src='recaptcha/api.js'></script>

and the following name:
if(isset($_POST['g-recaptcha-response'])){
$captcha=$_POST['g-recaptcha-response'];

As there is any name inside input but only g-recaptcha-response it will be refused by validator as an error and official Google Id name will not work.
SyntaxError: missing : after property id

When I use different ID (_) it will not work like:
g_recaptcha_response: {
required: "Required field!.",
},
How to solve this?
Need help.
2:14 pm on June 19, 2015 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12555
votes: 3


Which version?
[developers.google.com...]
11:35 am on July 2, 2015 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2006
posts: 1108
votes: 1


There is any version as it uses
<script src='https://www.google.com/recaptcha/api.js'></script>

<div class="g-recaptcha" data-sitekey=""></div>

It means it will use updated version.