homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

HTML menu question
How can I load different default values for an html menu?

10+ Year Member

Msg#: 11057 posted 4:54 am on Sep 22, 2005 (gmt 0)

Hello all

I hope I'm calling these html menus by their correct name. I'm talking about the dropdowns created in html with <select></select> tags.

I'm developing a tracking program that connects to a mySQL database for my own use. In it I have a number of html menus used to select beginning and ending dates for different screens. I want the dropdowns to remember the last setting I've selected before submitting the form.

I can write a value to the database but I'm not sure how to programatically add "selected" to the menu's code to cause a certain value to be displayed the next time the page is displayed.

I hope I'm being clear enough. Any help would be greatly appreciated.




Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved