MDWeezer Posted September 27, 2006 Share Posted September 27, 2006 Pardon the ColdFusion tags.... I'd prefer to be doing this in PHP but gotta use what the customer has![code]<form><select name="racks" size="20" ><cfoutput query="racks"><option value="#RACO_OBJECT_ID#">#RACO_RACK_NAME#</option></cfoutput></select></form>[/code]That correctly populates a list with 20 or so options but when all is said and done, the very last record is selected which is a little bit annoying and I would prefer for the first option to be selected.Would appreciate a fix or some insight. Thanks :).[b]FIXED.[/b]I simply took off the </option> tags after each option... Quote Link to comment https://forums.phpfreaks.com/topic/22242-autopopulated-form-list-defaults-to-last-item-in-list-fix/ Share on other sites More sharing options...
fenway Posted September 27, 2006 Share Posted September 27, 2006 I won't even ask... Quote Link to comment https://forums.phpfreaks.com/topic/22242-autopopulated-form-list-defaults-to-last-item-in-list-fix/#findComment-99771 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.