Welcome Guest, Not a member yet? Register   Sign In
Validation: how about greater_than_or_equal_to?
#1

[eluser]Kenneth Vogt[/eluser]
I can see how to compare two form fields in validation with the rules greater_than or less_than. However it is pretty common to need greater than OR equal to, or less than OR equal to. I see no such native rules. Furthermore, it appears that form validation only allows for <rule 1> AND <rule 2>, there is no way to have <rule 1> OR <rule 2>. Is there a way to accomplish this?
#2

[eluser]CroNiX[/eluser]
Sure, build your own callback functions or extend the Form Validation library with your additional custom rules.




Theme © iAndrew 2016 - Forum software by © MyBB