[eluser]CodeIgniterNewbie[/eluser]
I have some forms wherein the validation requires a callback to the DB, a web service, etc. Individually, these callbacks don't take up that much time. However, collectively, the do. So, I want to do the basic validations on all the form fields first -- and if those pass, only then do I do the other type of validations.
For example, say I have a field "email_address", I first want to do the following:
Code:
'field' => 'email_address',
'label' => 'Email Address',
'rules' => 'trim|required|valid_email|xss_clean'
And then do the rest of the fields in a similar way. If they all pass, then I do the validations that take a longer time.
How is this done?