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.