I'm working on putting together a website at the moment and one of the aspects of it is an event calendar. I'd like for the submission form to include a date selector (year/month/day) for the events, but I'm running into some problems figuring out how to make it do what I want it to.
The first thing I'd like to have is a chained select menu to ensure that months with less than 31 days will show the correct number of days, and that leap year is taken into account for February. Right now I'm using a javascript template I found online, and have been able to accomplish this goal with it. However, my javascript skills are not advanced, so I don't know how to tweak the code to include my second requirement. Is it possible to do chained selects without javascript and without requiring page reloads?
The second option I'd like to have is to dynamically preselect certain dates for the date picker. For example, if a user is to edit a submitted event from the calendar (which is stored in a MySQL database), I'd like to have the edit page load with the existing date preloaded into the date picker so the user doesn't have to reenter it. I can easily do this if the date menus were all in php (my php skills are much further along than my javascript skills), but since they're in javascript, I'm kind of stuck.
I'm sure if I spend a few weeks teaching myself javascript, I might be able to figure it out, but I certainly could use some suggestions, as I'd prefer not to spend weeks working out a small detail on a minor feature of my website. A php solution to creating chained selects would be perfect (an would be a lot more efficient to create and update utilizing the date() function), but I'm not sure if one exists or not.
Thanks for any help!
P.S. The chained selects javascript template that I'm using is "Chained Selects script" from http://www.yxscripts.com/