mcsolas
asked on
Date of birth entry.
I am designing forms which will be asking people for their date of birth.
I was thinking to use 3 inputs: combos for day / month then let them key in the year.
How can I provide my users a seamless manner in which to input this information, then how do I convert that value back into a datetime format?
I was thinking to use 3 inputs: combos for day / month then let them key in the year.
How can I provide my users a seamless manner in which to input this information, then how do I convert that value back into a datetime format?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
why not just a javascript Calender control and eliminate the user doing any data entry completely..
http://www.dynarch.com/projects/calendar/
http://www.softcomplex.com/products/tigra_calendar/demo1.html
http://www.mattkruse.com/javascript/calendarpopup/
and many more
http://www.dynarch.com/projects/calendar/
http://www.softcomplex.com/products/tigra_calendar/demo1.html
http://www.mattkruse.com/javascript/calendarpopup/
and many more
ASKER
Ok .. let me check all these suggestions out.
Do any of the suggested calendars work if javascript is disabled?
Do any of the suggested calendars work if javascript is disabled?
the solutions provided by SidFishes and I do not use javascript, so if it were disabled, you'd never know the difference
the javascript calendars depend on javascript, pretty hard to get around javascript if you want a calendar control...
ASKER
>trailblazzyr55
Yes I figured as much, I was just checking if any 'degraded gracefully' .. as if I use javascript to enhance a page, I would like it to function still without scripting enabled.
Im still up in the air, I split the points because I really liked the functionality of the accuracy of helping people pick Feb 29th on leap years. Given its for insurance data .. I would like to do all I can to help with the accuracy.
Im not sure how I can make the 2 work together
( this has to work js disabled, my tester doesnt even turn it on )
Yes I figured as much, I was just checking if any 'degraded gracefully' .. as if I use javascript to enhance a page, I would like it to function still without scripting enabled.
Im still up in the air, I split the points because I really liked the functionality of the accuracy of helping people pick Feb 29th on leap years. Given its for insurance data .. I would like to do all I can to help with the accuracy.
Im not sure how I can make the 2 work together
( this has to work js disabled, my tester doesnt even turn it on )
you can make the fields I had listed for day month and year drop downs rather than text input fields, this would ensure better data integrity, I used text fields to show an example, but for use I would ALWAYS never let a user hand type in date values, I would always force them to use a drop down or set of drops to accomplish the date entry.
All you have to do is simply replace the text fields I had with drop downs.
All you have to do is simply replace the text fields I had with drop downs.
Jester had started the drops, you just won't use javascript to populate a single form, just concastinate the three forms into a single variable value like I did in my example... let me know if you still need a hand, I can rewrite what I had with the drops...
ASKER
Dont sweat the details, I can handle that. You most directly answered my question .. I need to take 3 seperate pieces of form data and create a date.
Next, I make the process easy, which is where the assisted answer helps.
I also like the years loop, but I went on the wikipedia and started looking up the oldest humans, I am going to set it at 120.
I think I have plenty to get started with, much thanks for the feedback.
Next, I make the process easy, which is where the assisted answer helps.
I also like the years loop, but I went on the wikipedia and started looking up the oldest humans, I am going to set it at 120.
I think I have plenty to get started with, much thanks for the feedback.
glad i could help
thanks for the points
thanks for the points
You're welcome and I'm glad we could help, just and FYI those people that make it to 120 yrs old probably figure they're too old to learn computers now or don't bother with them, you'd probably be pretty safe at 80-90 years for age and it'll allow you to shorten up the drop down a bit. Depends on your application though...
Good luck and let us know if you need anymore help!
Thanks!
Good luck and let us know if you need anymore help!
Thanks!
<cfset vDay = form.day>
<cfset vMonth=form.month>
<cfset vYear =form.year>
<cfset vDate = vMonth & "/" & vDay & "/" & vYear>
#createodbcdate(vDate)#