Welcome Guest, Not a member yet? Register   Sign In
validation problem
#6

[eluser]tonanbarbarian[/eluser]
yes you could do something like that
Most of the rules that you can set such as required, matches, min_length, max_length, exact_length, valid_email, valid_ip, alpha, aplha_numeric, alpha_dash and numeric are just methods of the validation class that return a boolean value

so if you wanted to test if an email address was valid for example you could
Code:
if ($this->validation->valid_email('[email protected]'))...


Messages In This Thread
validation problem - by El Forum - 01-10-2008, 02:36 AM
validation problem - by El Forum - 01-10-2008, 02:44 AM
validation problem - by El Forum - 01-10-2008, 02:50 AM
validation problem - by El Forum - 01-10-2008, 02:55 AM
validation problem - by El Forum - 01-10-2008, 05:12 AM
validation problem - by El Forum - 01-10-2008, 05:24 AM
validation problem - by El Forum - 01-10-2008, 05:32 AM
validation problem - by El Forum - 01-10-2008, 09:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB