// 验证通过 可以进行其他数据操作
if($_SESSION['verify_code'] != md5($_POST['verify'])) {
$this->error('验证码错误!');
}<p class="clearfix" id="captcha">
<label class="one" for="agent">验证码<span class="xing">*</span></label>
<input style="width:15%;" id="agent" name="verify" type="text" class="captcha-text" value placeholder="请输入验证码" />
<img id="verifyImg" width="25%" class="left15" height="50" alt="验证码" onclick=changeVerify() src="__URL__/verify" title="点击刷新">
</p> 最佳答案