Multiple callbacks and regular expressions in callback |
[eluser]sqwk[/eluser]
Split the validation into two functions: (Put them in your controller at the bottom) Code: function _check_email_ends_with_ac($str) { Prefix the functions with _ to prevent them being called directly. inside your controler you would do something like this: Code: $this->load->library('form_validation'); Also check out http://ellislab.com/codeigniter/user-gui...ation.html to find out more about setting error messages, etc… |
Messages In This Thread |
Multiple callbacks and regular expressions in callback - by El Forum - 09-04-2010, 02:35 PM
Multiple callbacks and regular expressions in callback - by El Forum - 09-05-2010, 04:52 PM
|