Welcome Guest, Not a member yet? Register   Sign In
Form validation with -OR- check and form_validation config?
#1

[eluser]Unknown[/eluser]
I have to check for one field or another. I did this before by setting a rules array with one of the fields required then changing the rules based on what data was posted. So for example. Field a is required. If field a is posed all is good, if not, we set b to required, then run the validation. I then switched to using a form_validation config file. Can I still somehow set these rules on the fly before passing them to the validators run()?




Theme © iAndrew 2016 - Forum software by © MyBB