several options to approach this:
1) using some elaborated javascript you can make sure the
dates are
correlated with months and leap years, so that 31/9/1976
can't even be
selected (i.e. as soon as you select 9 as month the day field
will
change to 30)
problem: clients with disabled javascript will still be able
to select
wrong dates....
2) validate dates using javascript before/on form submission
problem: same elaborate js needed as in 1) and again will not
work with
js disabled in browser...
3) validate dates on the server (after form submission) using
cf, i.e.
inside cftry/cfcatch use createdate() or createodbcdate()
functions to
try and create a date out of form values and check if it is a
proper
date. do this before comparing dates. use cfthrow to throw
your own
error type which you can catch with cfcatch if you want to.
--
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com