Welcome Guest, Not a member yet? Register   Sign In
Split Form Validation
#1

[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?


Messages In This Thread
Split Form Validation - by El Forum - 02-12-2010, 12:46 PM
Split Form Validation - by El Forum - 02-12-2010, 03:51 PM
Split Form Validation - by El Forum - 02-12-2010, 03:54 PM
Split Form Validation - by El Forum - 02-12-2010, 04:30 PM
Split Form Validation - by El Forum - 02-12-2010, 04:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB