在我的法典中,这些错误是解决这一问题的错误。
A PHP Error
严重程度:警告
贺电:Cannot 更改标题信息——已经发送的负责人(投稿开始于/home/websites/public_html/application/ Controllers/user.php:64)
姓名:求助人/救援人员。
Line Number: 546
这是我的法典。
function register()
{
$email=$_POST[ email ];
$pass=$_POST[ pass ];
$cpass=$_POST[ cpass ];
$valid = array(
array(
field => email ,
label => Username(Email) ,
rules => trim|required|valid_email|is_unique[register.email]
),
array(
field => pass ,
label => Password ,
rules => trim|required||matches[cpass]|min_length[8]|max_length[30]|
),
array(
field => cpass ,
label => Confirm Password ,
rules => trim|required
)
);
$this->form_validation->set_rules($valid);
$this->form_validation->set_error_delimiters( <div class="error_txt"> , </div> );
if ($this->form_validation->run() == FALSE)
{
echo "error";
redirect( /home/ );
}
else
{
$this->load->model( User_model );
$rs=$this->User_model->register($_POST);
redirect( /home/ );
}
}