You are here: Forms « PHP « IT news, forums, messages
Forms

Posted by Marquez Design on 10/04/63 11:11

Greetings,

Does anyone know how to get a particular option to display in a drop menu?

<select name="category" id="category">
<option selected="true" value="Option Value">Option Value</option>
<option value="line">---------------------</option>
<option value="value1 ">value1</option>
<option value="value2 ">value2 </option>
<option value="value3 ">value3</option>
<option value="value4 ">value4</option>
</select>

The user has previously selected a category. That information is in the
database. Here they are editing the record. What I would like is for the
option that was selected and is in the database to be displayed as the
selectd option.

Does anyone know how I can do this, or can you point me in the right
direction?

Thank you,

--
Steve Marquez
Marquez Design

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация