CodeIgniter Forums

Full Version: password confirm sample?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]rochellecanale[/eluser]
help guys my problem is i have created a password/password confirm and it doesnt work my code is

Password <input type="password" name="password" value="" size="40" />
Re-Type Password <input type="password" name="passcon" value="" size="40" />

==============================================================
$this->form_validation->set_rules
('password','Password','trim|required|matches[passcon]|md5');

$this->form_validation->set_rules
('passcon', 'Password Confirmation', 'trim|required');
==================================================================
ok i solved my own problem i forgot to put form_error()