如何在HTML中添加Recaptcha 2

时间:2019-03-20 23:05:24

标签: recaptcha captcha

我在HTML上添加了此代码,但是它不起作用。它仅显示验证码,您能告诉我我所缺少的吗?

<html>
  <head>
    <title>reCAPTCHA demo: Simple page</title>
     <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  </head>
  <body>
    <form action="?" method="POST">
      <div class="g-recaptcha" data-sitekey="your_site_key"></div>
      <br/>
      <input type="submit" value="Submit">
    </form>
  </body>
</html>

0 个答案:

没有答案