[eluser]RaGe10940[/eluser]
Code:
<h3>Students Waiting</h3>
<table id='waiting' class='display'>
<thead>
<tr>
<th>ID</th>
<th>A Number</th>
<th>First Name</th>
<th>Last Name</th>
<th>Reason for visit</th>
<th>Comments</th>
<th>Aid Year</th>
<th>Staff Comments</th>
<th>Staff Member</th>
<th>Options</th>
</tr>
</thead>
<tbody>
<?php
foreach ($waiting as $row)
{
?>
<tr>
<td><?php echo htmlspecialchars($row['id'], ENT_QUOTES, 'UTF-8'); ?></td>
<td><?php echo anchor('studentqueue_controller/history/'.urlencode($row['anum']). '', $row['anum'], 'target="_blank"'); ?></td>
<td><?php echo htmlspecialchars($row['first'], ENT_QUOTES, 'UTF-8'); ?></td>
<td><?php echo htmlspecialchars($row['last'], ENT_QUOTES, 'UTF-8'); ?></td>
<td><?php echo htmlspecialchars($row['reason'], ENT_QUOTES, 'UTF-8'); ?></td>
<td><?php echo htmlspecialchars($row['studentcomments'], ENT_QUOTES, 'UTF-8'); ?></td>
<td><?php echo htmlspecialchars($row['aidyear'], ENT_QUOTES, 'UTF-8'); ?></td>
<td><?php echo htmlspecialchars($row['counselorcomments'], ENT_QUOTES, 'UTF-8'); ?></td>
<td>
<?php echo form_open('studentqueue_controller/counselorscreen'); ?>
<?php echo form_dropdown('namedrop', $names) ?></td>
<td>
<input type="checkbox" name="options" value="start" <?php echo form_checkbox('options','start') ?>Start</input>
<br />
<input type="checkbox" name="options" value="stop" <?php echo form_checkbox('options','stop') ?>Delete</input>
<?php echo form_submit('submit', 'Start Action'); ?>
<?php echo form_close(); ?>
</td>
</tr>
<?php
} ?>
</tbody>
</table>
I put form_open and form close in each of the rows. that works just fine now. thanks for the input!