Dropdown day, month, year menus

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Dropdown day, month, year menus

Post 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
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post 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> :)
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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..
Post Reply