时间:2021-07-01 10:21:17 帮助过:4人阅读
public function do_login() {
$username = $_POST['txtUserName'];
$userpwd = $_POST['txtUserPwd'];
$code = $_POST['txtCode'];
if ($code==$_SESSION['verify']) {
$m = M('Manger');
$where['username'] = $username;
$where['userpwd'] = md5($userpwd);
$i = $m->where($where)->count();
if ($i > 0) {
$this->redirect(__URL__ / main);
} else {
$this->error('用户名或密码错误');
}
} else {
var_dump($_POST).'';
//var_dump($_SESSION['verify']);
//$this->error('验证码错误');
}
}
Copyright 1998 - 2013 MOMU. All Rights Reserved. 版权所有
Copyright 1998 - 2013 MOMU. All Rights Reserved. 版权所有
$username = $_POST['txtUserName'];
$userpwd = $_POST['txtUserPwd'];
$code = $_POST['txtCode'];
echo $username;
echo $userpwd;
echo $code;
?>