> What's the method for populating any number of html
> form <option>...</option> tags with query results?
> I've seen lots of php-embedded examples for CHECKBOX,
> RADIO and even SELECT, but I can't seem to figure out
> how to create a simple drop-down menu. HELP!!!
Wouldn't it just be:
<select name="menu">
<option value="<?php echo $firstoptionvalue; ?>"><?php echo
$firstoption; ?></option>
<option value="<?php echo $secoptionvalue; ?>"><?php echo
$secoption; ?></option>
</select>
If there's a varying number of options run a loop with arrays
<select name="menu">
<?php
for ($i = 0; $i < $numoptions; $i++)
echo "<option value='$optionvalue[$i]'>$option[$i]</option>
?>
</select>
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]