Welcome Guest, Not a member yet? Register   Sign In
trying to updating multiple records with checkboxes but nothing updates
#4

[eluser]johnmerlino[/eluser]
When you default the value attribute to 1:

form_checkbox("approved[$row->id]",'1', $row->approved)

and then convert it to integer in php, then when user selects checkbox, that value attribute will get passed to php array and it will work. The second argument of form_checkbox gets put in the html value attribute.


Messages In This Thread
trying to updating multiple records with checkboxes but nothing updates - by El Forum - 04-05-2011, 09:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB