Welcome Guest, Not a member yet? Register   Sign In
More form validation after calling method form_validation->run()


assume that you need to compare two values from a submitted form to determine values are valid or not.
For example, if you have a date picker with year, month and day values, you need to check both month and day values to see whether the date is valid, because months can have 28, 29, 30 or 31 days.

I cannot implement a validator callback for this situation, since it needs two parameters: month and day.
I thought maybe I can do the validation after the calling the $this->form_validation->run() and cancel the valid status and repopulated the form and data; but I don't know how.

I appreciate you help.

Theme © iAndrew 2016 - Forum software by © MyBB