标签:
public function chkcode()
{
$Verify=new \Think\Verify(array(
‘fontSize‘=>30, //验证码字体大小
‘length‘ =>4, //验证码位数
‘useNoise‘ =>TRUE, //关闭验证码杂点
));
$Verify->entry();
}
<tr>
<td>验证码:</td>
<td>
<input type="text" name="chkcode" class="capital" />
</td>
</tr>
<tr>
<td colspan="2" align="right">
<img style="cursor:pointer;" onclick="this.src=‘<?php echo U(‘chkcode‘); ?>#‘+Math.random();" src="<?php echo U(‘chkcode‘); ?>" />
</td>
</tr>
标签:
原文地址:http://www.cnblogs.com/gooderic/p/5675074.html