Forms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux