Welcome Guest, Not a member yet? Register   Sign In
Multiple Fields with a single callback using the form_validation library?
#5

[eluser]drewbee[/eluser]
Sorry, don't take the code too literally. I cut it out of my edit profile controller.

That lookups variable holds all of the data returned from my model for populating the form (dropdowns / selection boxes); so that is something I do.

Do whatever validation you need too in between the cases.

This form is a massive form that takes in birth date, a lot of personal information, timezone, country etc. So as you can assume, lots of drop downs in there. I always verify that what they selected is an actual available value. Don't need people inserting their own stuff by making their own custom form.


Messages In This Thread
Multiple Fields with a single callback using the form_validation library? - by El Forum - 03-19-2009, 09:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB