Posted by rich on 10/25/61 11:48
Here is part of the code with explaination
This is the cell in a table that is part of a form.
<td>
<select name="stages[]" multiple="multiple">
<?php
$allstages = allstages();
while ($allstagerows=pg_fetch_array($allstages)) {
$eachstage= $allstagerows["stageid"];
while($drcatrow = pg_fetch_array($dresscat)){
if ($drcatrow["stageid"] == $eachstage){ ?>
<option value=<?php echo $eachstage;?> selected="selected"><?php
echo $allstagerows["stage"]?></option>
<?php }else{ ?>
<option value=<?php echo $eachstage;?>><?php echo
$allstagerows["stage"]?></option>
<?php }
}
}
?>
</select>
</td>
Navigation:
[Reply to this message]
|