mrjonman
09-22-2005, 01:32 PM
Hello all
I'm new to this forum. Please forgive me if the answer to this question is archived here - I couldn't find anything.
I hope I'm calling these items (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 selected before submitting the form.
I can write a value to the database to store default values but I'm not sure how to programmatically add "selected" to the menu's code to cause a certain value to be displayed the next time the page is displayed. Is there another way to set the default value for an html menu?
I hope I'm being clear enough. Any help would be greatly appreciated.
Thanks
John
I'm new to this forum. Please forgive me if the answer to this question is archived here - I couldn't find anything.
I hope I'm calling these items (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 selected before submitting the form.
I can write a value to the database to store default values but I'm not sure how to programmatically add "selected" to the menu's code to cause a certain value to be displayed the next time the page is displayed. Is there another way to set the default value for an html menu?
I hope I'm being clear enough. Any help would be greatly appreciated.
Thanks
John