表單驗證 web
一、add_user 併發
] 學習
二、form_check() ui
三、 this
一、加載 spa
$this->load->library('form_validation'); 3d
二、設置各類規則 orm
$this->form_validation->set_rules('user_name','姓名','required'); blog
$this->form_validation->set_rules('user_password','密碼','required'); ci
$this->form_validation->set_rules('user_email','郵箱','required');
三、 運行
$bool=$this->form_validation->run();
四、反饋錯誤信息
echo form_error('user_password');