如何在我的 PHP 表单中添加验证码?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2179375/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 05:22:34  来源:igfitidea点击:

How do I add a CAPTCHA to my PHP form?

phpformscaptcha

提问by php form

My knowledge of php is not good and I need help.

我的 php 知识不是很好,我需要帮助。

I have this php formbut I don't know how to add a CAPTCHA mechanism.

我有这个php 表单,但我不知道如何添加验证码机制。

How do I achieve this?

我如何实现这一目标?

回答by meme

I really like Securimageis seems to work really well and does not require a third-party external service or javascript (unless you enable the new image feature). Also it can be configured to provide audio captcha for accessibility.

我真的很喜欢Securimage似乎工作得很好并且不需要第三方外部服务或 javascript(除非您启用新的图像功能)。它还可以配置为提供音频验证码以实现可访问性。

回答by John Mccandles

Check this detailed guide about captcha implementation in PHP: http://www.the-art-of-web.com/php/captcha/

查看有关 PHP 验证码实现的详细指南:http: //www.the-art-of-web.com/php/captcha/