CodeIgniter Forums
password confirm sample? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: password confirm sample? (/thread-54432.html)



password confirm sample? - El Forum - 09-08-2012

[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()