隐形验证码正常时的 HTML 提交按钮

问题描述

我正在构建我的第一个网站,我在我的网站上创建了简单的按钮,我希望只有在成功完成隐形验证后才能提交表单,然后创建消息说已成功完成。

我有这样的代码

<a href="#" class="u-btn u-button-style u-hover-palette-1-dark-1 u-palette-1-base u-btn-1" data-animation-name="zoomIn" data-animation-duration="1000" data-animation-delay="0" data-animation-direction="" title="Kliknij żeby się zweryfikować">Weryfikuj</a>

如果隐形验证码成功完成,我想让它只能点击。当表单正确提交时执行代码

<form action="something.PHP" method="post">

<input type="hidden" name="command" value="SOMETHING SOMETHING <?=$_SERVER['REMOTE_ADDR']?>">

上次我得到这样的东西

        <h1 class="title"><b>SOMETHING<span class="points">...</span></h1></b>
        <div class="text">
            <p>Click to get verified!</p>
              <form action="something.PHP" method="post">
            <div class="text-center">
              <div class="g-recaptcha" data-theme="dark" data-callback="captcha_filled"
                 data-expired-callback="captcha_expired" 
                 data-sitekey="XXXXXXXXXXXXXXXXXXXXXXXXXXX">
             </div>
            </div>
              <p>
              <input type="submit" name="command" data-toggle="tooltip" title="DO CAPTCHA TO GET VERIFIED.!" data-placement="bottom" onclick="showDiv()" id="submitLogin" value="WERYFIKUJ" class="przycisk"></div>
              <input type="hidden" name="command" value="SOMETHING SOMETHING <?=$_SERVER['REMOTE_ADDR']?>">
              <b><h1 style="color:#cc00cc;"><div id="welcomeDiv"  style="display:none;" class="answer_list" > CORRECTLY VERIFIED </div></h1></b>
              <script src="https://www.google.com/recaptcha/api.js" async defer></script>
              </form>
              </div>
   

^^^ 我认为是在 recapcha v2 上

现在我只有按钮。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)