I'm trying to use php (maybe not the best choice) to dynamically give a person the number of days in a month.
I have a form where the person must select the month (which i would like to just place in an array from the server) then select the day of the month which again i would like the server to provide.
The current best alternative i have is writing every <select><option tag for all 12 months and 31 days.
I began to think that since not every month has 31 days, I should be sure that the month chosen corresponded to the number of day they chose. IE if the event happened in february they shouldn't have 29, 30, 31 as an option unless it was leap year, and then just 30, 31 wouldn't be available. Is this possible? or do you even understand?