I have a form that has multiple checkboxes and when I do print_r to see the values that are posted they come is in the following format:
[group] => Array ( [22] => 22 [44] => 44 )
etc. Normally I run a loop to insert these values into a db, however when I use this form for editing values I can only edit one entry at a time. So how do I convert this array into a simple value when I submit a single checkbox?
[group] => Array ( [22] => 22 )
something like $_POST['group'] = 22;
long day, can't think straight...