Jump to content

How to remember List/Menu value?


herando

Recommended Posts

Objective - to update table records via form field.

If I have text field, the field remembers the value in such way:

<input name="object" type="text" value=" <? echo $rows['object']; ?> "/>


How to remember the value of List/Menu field?

<select name="object">
<option selected="selected">--- choose ---</option>
<option value="0">Beer</option>
<option value="1">Wine</option>
<option value="2">Vodka</option>
</select>
Link to comment
https://forums.phpfreaks.com/topic/11853-how-to-remember-listmenu-value/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.