Getting Null in g-recaptcha-response Google's reCaptcha

前端 未结 2 1594
南笙
南笙 2021-01-25 22:21

I am trying to implement Google\'s reCaptcha v.2.0 but i am getting null in g-recaptcha-response due to this reCaptcha is not working properly and I am always g

2条回答
  •  情歌与酒
    2021-01-25 22:56

    I'm not sure how you're submitting the form without an actual submit button, but I've copy/pasted your code and it works for me. I did change the error arrays into echo to display the else messages.

    
    
        
            
        
        
            
    success) { // My All Logic Here echo 'Success Message'; } else { echo 'Robot verification failed, please try again.'; } } else { echo 'Please click on the reCAPTCHA box.'; } } ?>

提交回复
热议问题