editing field value using selectbox with options
| From: | Denis L. Menezes | Date: | Tue, 25 Feb 2003 15:08:45 +0000 |
| Subject: | editing field value using selectbox with options | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-137072@lists.php.net to get a copy of this message | ||
Hello friends.
In an edit form, I need the following select box.
<select name="MemPicSalutation" id="MemPicSalutation">
<option value="Mr.">Mr.</option>
<option value="Ms.">Ms.</option>
<option value="Mrs.">Mrs.</option>
<option value="Dr.">Dr.</option>
<option value="Capt.">Capt.</option>
</select>
My problem is : since I am getting the selected value from the database and showing it (for editing
the option value and later updating), I do not know how to show the selected value(value of the
option from the existing field value in the database) in the edit form(when opening the edit form)
along with the other option values.
Can someone help? I am using PHP and $row.
Thanks
denis