nikhar021 Posted April 23, 2008 Share Posted April 23, 2008 when i use the select code the first option in the list is implicitly selected which i do not want what should i do Link to comment https://forums.phpfreaks.com/topic/102561-need-help-with-select/ Share on other sites More sharing options...
ucffool Posted April 23, 2008 Share Posted April 23, 2008 HTML code uses <option SELECTED> to mark the option you want to be shown by default. XHTML code uses <option selected='selected'> to do it. Link to comment https://forums.phpfreaks.com/topic/102561-need-help-with-select/#findComment-525167 Share on other sites More sharing options...
IsmAvatar Posted April 23, 2008 Share Posted April 23, 2008 Not sure if I understood your correctly, but note ucffool's post first. If that doesn't help, Explicitly state which one you want selected, or add another entry as the first entry which is blank - and then add a check to ensure that they have not selected the blank field. Link to comment https://forums.phpfreaks.com/topic/102561-need-help-with-select/#findComment-525168 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.