|
$username=$this->input->post('username',TRUE);
$password=md5($this->input->post('password',TRUE));
$user=$this->user_model->login($username,$password);
if($user['password'] != $password) redirect('admin/login');//我这样写 这里报错
是什么原因哦
A PHP Error was encountered
Severity: Notice
Message: Undefined index: password
Filename: admin/login.php
Line Number: 31
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at C:\XXX\xx\system\libraries\Exceptions.php:166)
Filename: helpers/url_helper.php
Line Number: 541 |
|