我们在以下网址上有一个活动的reCaptcha v2实现:
https://och.stonybrook.edu/index.php?page=roommates&task=submit
在向我报告今天没有工作之前,reCaptcha一直运转良好。
我确定了以下几点:
我有:
我无法理解为什么<textarea>
没有将其数据发布到服务器。
我在https://developers.google.com/recaptcha/docs/verify爬行了这些文档,但没有结果。
HTML:
<!-- Using the Auto Render implementation as described in
https://developers.google.com/recaptcha/docs/display#auto_render -->
<!-- in <head> -->
<script src="https://www.google.com/recaptcha/api.js"></script>
<!-- in <form> -->
<div class="g-recaptcha" data-sitekey="SITE_KEY"></div>
PHP:
echo($_POST['g-recaptcha-response']); //outputs nothing
var_dump($_POST); //outputs all of my form values, except for <textarea id="g-recaptcha-response">
发布于 2020-05-15 07:29:31
表单很可能是格式错误的,例如不匹配的HTML标记。检查铬内,并确保表单环绕captcha文本区域。
https://stackoverflow.com/questions/48347522
复制相似问题