PHPCMS直接在页面中调用验证码图片
<input type="text" id="code" name="code" size="8" class="" style="margin-right:5px;">
{php pc_base::load_sys_class('form', '', 0); } <!-->先引入form 这个类<--!>
<span title="点击更换验证码" style="cursor:pointer;height:20%;margin:15px 0;float:left;">
{php echo form::checkcode('code_img', '4', '14', 84, 24); } <!-->在输出这个验证码<--!>
请输入图片中的验证码
</span>
Dcr163的博客
http://dcr163.cn/356.html(转载时请注明本文出处及文章链接)