|
楼主 |
发表于 2010-3-28 09:54:02
|
显示全部楼层
function check(){
$username = $this->input->xss_clean($this->input->post('username'));
$password = $this->input->xss_clean($this->input->post('password'));
$this->load->model('user');
$result = $this->user->checkUser($username,$password);
if($result){
//var_dump($result);die;
redirect('blog/index/');
}else{
redirect('login/index');
}
} 就是首页加上这个方法判断用户登陆,密码错误二次跳转就不正常了(地址就N倍叠加,造成地址参数错误),继续求教! |
|