#1 xiaorong321
function login(){
$conditions = array(
'user_id' => $this->spArgs('user_id'),
'pwd'=>$this->spArgs('pwd'),
);
if( $user->findAll($conditions))
{
$_SESSION['user_id'] = $this->spArgs('user_id');
$this->display("test.html");
}
else
{
echo "输入用户名或密码有误,请重新登录!返回";
}
}登录的问题,又错,帮忙!!这样用session对吗?
请教,谢谢!!
2011-04-02 11:23:55