【问题标题】:Testing Captcha in php在 php 中测试验证码
【发布时间】:2013-05-03 18:42:12
【问题描述】:

我希望在我的网站上有这个验证码:

http://lirullu.com/

我将如何以 php 形式测试此结果?这是我目前在 form.php 文件中的代码:

<script type="text/javascript">

            $(window).load(function() {

                var righthash1 = "cc03412089f87b9c509aaaa1";

                $("#hf023d03").sortable({
                  items: ".cnt", stop: function () {
                    hash = "";
                    $("#hf023d03 .cnt").each(function (a, b) { hash += $(b).attr("id"); }); if (hash == righthash1) {
                        $(".slg1").fadeIn("fast");
                    } else {
                        $(".slg1").fadeOut("fast");
                    }
                  }
                });

            });

            </script>

            <div id="first_cnt">
                    <h2>Are you a traveline hero?</h2>
                    <span class="htext">(drag the answer)</span>
                    <div class="d1" id="hf023d03">
                        <div class="cnt" id="509aaaa1"><span class="yes">S</span></div>
                        <div class="cnt" id="89f87b9c"><span class="yes">E</span></div>
                        <div class="cnt" id="cc034120"><span class="yes">Y</span></div>
                    </div>
                    <div class="slg1">
                        <h3>is the correct answer!</h3>
                    </div>
                </div>

【问题讨论】:

    标签: php jquery captcha


    【解决方案1】:

    我会认真考虑使用 Google 的 reCaptcha,它可能拥有最好的 API。

    https://www.google.com/recaptcha

    您可以按照教程和指南进行操作,它为您提供了将系统与您创建的任何网站集成所需的 PHP 和 Javascript。

    【讨论】:

    • 我真的很想用上面的例子。
    猜你喜欢
    • 1970-01-01
    • 2014-01-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-05
    • 2015-07-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多