[eluser]Jan_1[/eluser]
your checkboxes a little bit messy... but how about this as a hint:
Code:
<table id='waiting' class='display'>
<thead>
<tr>
<th>ID</th>
... etc
</tr>
</thead>
<tbody>
<?php
$i=0;
echo form_open('studentqueue_controller/counselorscreen');
foreach ($waiting as $row)
{
?>
<tr>
<td><?php echo htmlspecialchars($row['id'], ENT_QUOTES, 'UTF-8'); ?></td>
... etc
<td><?php echo htmlspecialchars($row['counselorcomments'], ENT_QUOTES, 'UTF-8'); ?></td>
<td><?php echo form_dropdown('namedrop', $names) ?></td>
<td><input type="checkbox" name="start[<?=$i?>]" value="$row['id']">Start</td>
<td><input type="checkbox" name="delete[<?=$i?>]" value="$row['id']">Delete</td>
</tr>
<?php
}
echo form_submit('submit', 'Start Action'); ?>
echo form_close();
?>
</tbody>
</table>
and in studentqueue_controller
Code:
function counselorscreen()
if ($this->form_validation->run() == FALSE)
{
load formular view (again)
}
else
{
$starter = $this->input->post('start');
foreach($starter as $start){ do something }
}
or maybe use
Code:
<td><?=anchor("controller/function/".$row['id'], "<i class='icon-remove'></i>")?></td>
(with nice icons from twitter/bootstrap)
if you want to have different things in the row
Hope it's a help. have a nice weekend!