Page 1 of 1

Dropdown day, month, year menus

Posted: Sat Oct 08, 2005 5:34 pm
by Smackie
I was wondering how i could make a easy javascript drop down for day, month, year (its for people to tell what there birthdays are) so i dont have to spend hours on typing them all in

Thank you
Smackie

Posted: Sat Oct 08, 2005 5:43 pm
by Charles256
i did a PHP loop myself;) and if the user entered a false bday (i.e. feb 32) tough <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> :)

Posted: Sat Oct 08, 2005 6:07 pm
by Smackie
well i want a dropdown menu where they cant enter something like july 32 or something like that it will only show the 12 months 31 or 30 or even on leapyear 28 and then like 100 years from 10 years ago or something like that

Posted: Sat Oct 08, 2005 7:02 pm
by feyd
what's wrong with letting people type it in (and having a date picker) ? It's fairly easy to do date correction to get the date they supply into a "valid" one..