Is it possible to show the last selected value from the drop down list box after form reload?
babydol 0 Newbie Poster
Recommended Answers
Jump to PostYou may check the suggestion here:
http://www.hotscripts.com/forums/php/17700-remember-selected-option-dropdown-menu.htmlWish it helps.
Jump to PostAhh, this is simple. Try this:
if($noticia['countryID=']==$country){ echo "<option value='$noticia[countryID]' selected='selected'>$noticia[countryName] </option>" . "<BR>";} }
The key here is putting
selected='selected'
in the option tag for the country you want selected.
All 5 Replies
catherine sea 15 Junior Poster
babydol 0 Newbie Poster
lakshmi_lux 0 Newbie Poster
Lsmjudoka 0 Junior Poster in Training
lakshmi_lux 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.