Help with Drop Down selection in PHP Code
Posted: Fri Jun 05, 2009 10:43 am
Goodday All,
I am very new with PHP and MySQL. I am busy developing a application, and would like to know how to add a drop down selection in a input field.
EG. Code -
Drop Down should only contain "Westin Grand", "Cullinen" and "Holliday Inn"
Any Help will be greatly appreciated.
Newby PHP coder
I am very new with PHP and MySQL. I am busy developing a application, and would like to know how to add a drop down selection in a input field.
EG. Code -
Code: Select all
<td class="hr"><?php echo htmlspecialchars("Hotel")." " ?></td>
<td class="dr"><input type="text" name="Hotel" maxlength="1" value="<?php echo str_replace('"', '"', trim($row["Hotel"])) ?>"></td>Any Help will be greatly appreciated.
Newby PHP coder