Rien17 Posted April 27, 2006 Share Posted April 27, 2006 Hello, I need help with setting the value of a combo box on a page. The page gets values from a database and i want to set the user type value to one of three possible values. the three values are Guest Coach and Admin. Thanks Link to comment https://forums.phpfreaks.com/topic/8582-setting-the-value-of-a-combo-box/ Share on other sites More sharing options...
ToonMariner Posted April 27, 2006 Share Posted April 27, 2006 to have one selected by default you need to add 'selected="selected" 'to the option tag. You would need an if statement to compare the value from your database and add that text of it is true. Link to comment https://forums.phpfreaks.com/topic/8582-setting-the-value-of-a-combo-box/#findComment-31474 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.