![]() |
PHP-html select form not working as hoped...?
Good evening, everyone --
The following code is supposed to generate an html select form with a dropdown list of months, with the CURRENT MONTH pre-selected. The dropdown list works, but the current month is not pre-selected as the default. I've spent a lot of time on this, but have been unsuccessful. Thanks for taking a look! -- Dave PHP Code:
|
Ahh...actually, I think it is working, at least when the page loads from scratch.
If I then select a month from the dropdown list and refresh the browser (not total reload), the month designation is not returned to the selected month -- it just stays at whatever state I left it. Aww, nice...how come? I thought refreshing completely re-ran the code. Thanks again. Dave |
It does, but most browsers will ignore form differences when a page is refreshed. What you can do is have javascript select the current month when the page loads.
|
Thanks! This is good to learn. ^^
Let me ask, why would the form differences be ignored? Is it for the sake of faster reloading? :-! |
| All times are GMT. The time now is 11:39 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0