I am stumped as to how I should implement validation for multiple form fields when validation relies on all of the fields. I want it to integrate naturally with CI’s validation so I don’t want to do this after the fact and return a custom message or something like that.
My date forms look like [___]/[___]/[_____] which would be mm/dd/yyyy. My question is how would I setup validation on the days so that for instance, in February, only 1-28 is valid when I can’t see what the month input is before the validation takes place?
Hopefully that makes sense.
Also as a small side question, if you want to add custom validation but want to store your validation in the form_validation config, do you still put the validation function in the controller or do you extend the form_validation class?