Welcome to WebmasterWorld Guest from 50.19.53.104

Forum Moderators: incrediBILL

Message Too Old, No Replies

HTML menu question

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

     

mrjonman

4:54 am on Sep 22, 2005 (gmt 0)

10+ Year Member



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.

Thanks

John

 

Featured Threads

Hot Threads This Week

Hot Threads This Month