原始出处:
http://www.phpclasses.org/package/7615-PHP-Validate-users-with-image-or-text-based-CAPTCHA.html
演示地址:
http://www.funsail.cn/phpClass/validation/
验证码
该类能够以基于CAPTCHA(Completely Automated Public Turing Test to Tell Computers and Humans Apart——全自动区分计算机和人类的图灵测试——的简称方式)的文本或图片对用户进行验证;它可以生成图片形式的文本内容让用户输入,或者生成问题由用户在输入框内以数字作答;该类直接生成HTML代码来展现验证的图片或问题;并且返回正确答案来对用户输入进行对比;
原文
This class can validate users with image or text based CAPTCHA.It can generate either an image with challenge text that the user must enter or a question presented in the form of text that the user must answer entering a number.The class generates the HTML to present either the validation image or question.It also returns the right answer so it can be compared with what the user entered.
|