Welcome Guest, Not a member yet? Register   Sign In
set_checkbox function and dynamic forms
#5

[eluser]Coen de Jong[/eluser]
I'm sorry, but I don't follow... It is true I use the same view for the filling in part and for the validation part if anything was not valid, but that should not change anything.

As far as I'm concerned, the post array is there and CI checks whatever he finds in the post array against the set_checkbox values I provide. If the post array says I checked the sector box with value '47', and I say set_checkbox('sector[]', 47), he needs to echo "checked". Regardless of what is in the database. The link with the database is only needed to retrieve the different possible sectors, not to determine whether or not they were selected.


Messages In This Thread
set_checkbox function and dynamic forms - by El Forum - 09-14-2009, 04:17 AM
set_checkbox function and dynamic forms - by El Forum - 09-14-2009, 05:21 AM
set_checkbox function and dynamic forms - by El Forum - 09-14-2009, 05:53 AM
set_checkbox function and dynamic forms - by El Forum - 09-14-2009, 06:01 AM
set_checkbox function and dynamic forms - by El Forum - 09-14-2009, 04:25 PM
set_checkbox function and dynamic forms - by El Forum - 09-15-2009, 03:06 AM
set_checkbox function and dynamic forms - by El Forum - 09-15-2009, 12:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB