Hallo,
kan man das nicht so machen so habe ich doch Name und ID Zusammen
<?php function Status1()
{
...while($myDB->next_record())
{
$aReturn[] = $myDB->f('s_id','s_name');
}...
}?>
<table border="0">
<?php
//Status
$oStatus = new Status();
$aStatus = $oStatus->Status1()
//Status
for($j=0; $j<count($aStatus); $j++)
{
?>
<tr>
<td>
<input type="checkbox" name="Status[$j]" value="<?php echo $aStatus[$j];?>"><?php echo $aStatus[$j]; ?>
</td>
</tr>
<?php
}
?>
</table>
Ich weis nur nicht wie ich ID und Name raushole und sage Value ist Id und der Anzeigename für die Checkbox ist Name
<input type="checkbox" name="Status[ID]" value="<?php echo $aStatus[$j];?>"><?php echo $aStatus[NAME]; ?>