CodeIgniter Forums

Full Version: Bug in form_validation [matches & input array]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]K-coder[/eluser]
Hello,

I can't check matches password if the password inputs is array

ex:

HTML
Code:
<input name="password[pass1]" type="password">
<input name="password[pass2]" type="password">

PHP
Code:
$this->form_validation->set_rules('password[pass1]', 'Password', 'required');
$this->form_validation->set_rules('password[pass2]', 'Password Confirmation', 'required|matches[password][pass1]');