|
发表于 2008-6-10 22:10:16
|
显示全部楼层
$rules['username'] = "callback_username_check";
function username_check($str)
{
if ($str == 'test')
{
$this->validation->set_message('username_check', "<script>alert('用户名错误');</script>" );
return FALSE;
}
else
{
return TRUE;
}
} |
|