|
<h5>Password</h5>
<input type="text" name="password" value="" size="50" />
<h5>Password Confirm</h5>
<input type="text" name="passconf" value="" size="50" />
$this->form_validation->set_rules('password', 'Password', 'required|matches[passconf]');
$this->form_validation->set_rules('passconf', 'Password Confirmation', 'required');
matches[passconf]应该放在passconf中,经过我一下午的被实验,惨痛的得出了这个结论,放在password中判断的话,按照顺序执行,是不会验证这一规则的
|
|