Date selector with correct number of days in February, April etc.
I need a date selector with drop down menus for day, month, year.
I need the day menu to show the correct number of days for each month. For example February has 28 days and 29 in a leap year. There is no such date as February 31. Clearly this should also apply to the other months with 30 days.
Here are two examples of date selectors...
1. [url removed, login to view]
2. [url removed, login to view]
I am trying to incorporate them into a form in a PHP file. The problem with Example 1 is that it works with <form> but not with <form method = "post">. I need to use post.
Example 2 works as given but does not work if the menus are not in a <body> tag. Of course they would be in the finished page, but I need the component to work independently for testing, otherwise I would have to redesign my testing procedure.
What I need therefore is a date selector with drop down menus for day, month, year, that shows the correct number of days in each month, that does not have these limitations.
I do not want to use any alternative solution such as a popup calendar-style selector.
I need an example of how this can be done. I will install it myself.