Own Validation Function - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Own Validation Function (/showthread.php?tid=5243) |
Own Validation Function - El Forum - 01-13-2008 [eluser]cinewbie81[/eluser] I have my own validation function - username_check as following: Code: $rules['username'] = "required|min_length[6]|max_length[20]|callback_username_check"; My doubt now is: How can i get the password value in my username_check validation function ?? Own Validation Function - El Forum - 01-13-2008 [eluser]Michael Wales[/eluser] There are three ways - each of which will return the same value: Code: $this->validation->password; These values are after the input has been run through your rules. For instance, if you had md5 within your rules, the returned value will be hashed. |