weixin_33725807
2020-01-12 18:47
采纳率: 0%
浏览 40

用Ajax看不见的reCAPTCHA

I'm trying to submit a form With Ajax but When i do that i'm getting an error on the Page Preview

Google captcha verification failed.

Here is my Ajax Code :

$(document).ready(function(){
    $('#Form').submit(function(event){
    event.preventDefault();
       $.ajax({
        url: 'test.php' ,
        type: 'POST',
        data: {
            verification_code: $('#verification_code').val(),


        },
        success: function(msg) {
            alert('Email Sent');
        }
    });

Is there anyway i can Include the invisible reCAPTCHA?

Here is the id i guess (i'm new to this stuff )

<input type="hidden" name="g-recaptcha-response" id="g-recaptcha-response" value="03AOLTBLRJ-kqE59WtFl99ks81arRI-w5jflwDiYXs_Cp0rTL6IyoEpWkr2wed01dK65H9P28KhZPIjrMbX22HXKfZFVoqewUb3qcRTZzhII2gX9QOB_25X5tdobsVpQwwXtxae1Ay-R29MHQViQV1iYKsBMx-a-MchnUHoDw_xrdA6bDJ1JF8a1PLUvxKXgF-C7C3LWWJ4WTQrw4aUMVmJgCQ_Cxd8r0HMcPZK8zO7g2jQBkbbzTo-U02iL9WH6-dfKrXRFEuFSBQtFYQZGi3YeuJnnq8NnWB2PKwxgl2qpbl0btPL2J02_wBYIx6jODTPhUmiYVnOpdY1Ga7ikyLgBSJcqYcmSoSUi9AfDofEjaIyAZuuL2AWaEjEF38BTluq3Ras417ohTaM6Rff11nBnJ31QGd-AJBJohWZe3lEtEz_LT5t391IG1d5daK9eCfIVDtEVVa9aLvcOUYPfEGSKudQqZTSOAhb6W_LTriFtmXKiDOt8d8Bx8nuIGpEDz0HKGlEQ1zF409kXNAef6_5hQfpsrTlXUVTA">

</div>

图片转代码服务由CSDN问答提供 功能建议

                    

我正在尝试使用Ajax提交表单,但是当我这样做时,页面预览出现错误</ p>

Google验证码验证失败。</ strong> </ p>

这是我的Ajax代码:</ p>

</ p>

  $(document).ready(function(){
     $('#Form')。submit(function(event){
     event.preventDefault();
        $ .ajax({
         网址:“ test.php”,
         输入:“ POST”,
         数据:{
             验证码:$('#verification_code')。val(),


         },
         成功:function(msg){
             alert('电子邮件已发送');
         }
     }); </ code> </ pre>
 </ div>
 </ div>


 

反正我可以包含不可见的reCAPTCHA吗?</ p>

这是我猜到的ID(我是这个东西的新手)</ p>

</ p>

  <输入类型=“ hidden” name =“ g-recaptcha-response” id =“ g-recaptcha-response” value =“ 03AOLTBLRJ  -kqE59WtFl99ks81arRI-w5jflwDiYXs_Cp0rTL6IyoEpWkr2wed01dK65H9P28KhZPIjrMbX22HXKfZFVoqewUb3qcRTZzhII2gX9QOB_25X5tdobsVpQwwXtxae1Ay-R29MHQViQV1iYKsBMx-A-MchnUHoDw_xrdA6bDJ1JF8a1PLUvxKXgF-C7C3LWWJ4WTQrw4aUMVmJgCQ_Cxd8r0HMcPZK8zO7g2jQBkbbzTo-U02iL9WH6-dfKrXRFEuFSBQtFYQZGi3YeuJnnq8NnWB2PKwxgl2qpbl0btPL2J02_wBYIx6jODTPhUmiYVnOpdY1Ga7ikyLgBSJcqYcmSoSUi9AfDofEjaIyAZuuL2AWaEjEF38BTluq3Ras417ohTaM6Rff11nBnJ31QGd-AJBJohWZe3lEtEz_LT5t391IG1d5daK9eCfIVDtEVVa9aLvcOUYPfEGSKudQqZTSOAhb6W_LTriFtmXKiDOt8d8Bx8nuIGpEDz0HKGlEQ1zF409kXNAef6_5hQfpsrTlXUVTA“> </代码> </ PRE>
 </ div>
 </ div>

     </ div>

相关推荐 更多相似问题