thinkphp中验证码的使用
精选 转载在thinkphp中使用验证码很容易,只要调用thinkphp现有的方法就可以。当然,php的GD库肯定是要开的。
首先,在写Action文件,如:IndexAction.class.php.
在对应的模板文件:Tpl\default\index目录下新建文件verifyTest.html,内容如下:
上一篇:遇到的函数收集
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
生成验证码-超简单
轻松应对验证挑战:简单验证码的实现方法!
验证码 Java -
java中验证码的使用
1、 在action中书写获取验证码的方法需要注意的是,要将验证码存入s
java 验证码 工具类 Struts2 jsp