Lilian
11-05-2007, 07:17 PM
Ok I neeed a little help. I need to change this drop down menu to check buttons but need a little help.
<select name="p_id">
<?php
$SQL = "SELECT * from options";
$result = mysql_query( $SQL );
while( $row = mysql_fetch_array( $result ) ) {
$id = $row["ID"];
$name = $row["NAME"];
?>
<option value="<?php echo $id; ?>"> <?php echo $name; ?></option>
<?php } ?>
</select>
How could I change that so that the options show up in a checkbox form method instead of a drop down menu.
+REP to anyone who can help.
<select name="p_id">
<?php
$SQL = "SELECT * from options";
$result = mysql_query( $SQL );
while( $row = mysql_fetch_array( $result ) ) {
$id = $row["ID"];
$name = $row["NAME"];
?>
<option value="<?php echo $id; ?>"> <?php echo $name; ?></option>
<?php } ?>
</select>
How could I change that so that the options show up in a checkbox form method instead of a drop down menu.
+REP to anyone who can help.