I'm iteratively building a table that includes user information for a number of users, and a checkbox to update a status field for each user. Psuedo-code from my controller:
foreach ($vols as $vol)
{
$data['user_name'][] = $vol->username;
$data['status'][] = '<input type="checkbox" name="signupStatus" /> confirm ';
}
The $data array is passed to a view where a table is built showing a list of users with a checkbox next to each. An admin can check the box by a user name in order to update their status in the database.
In my submit function how can I build an array that contains the username and the associated status (checkbox value).
FYI: I'm using Codeigniter, PHP5.2, MAMP