This is a matter of preference (and I'm sure there are others here who 
might agree with me), but the validation code provided by the cfform 
tags is abismal. Roll your own.

Cutter

[EMAIL PROTECTED] wrote:

>I've got an interesting form date validation problem. I'm using the
>standard built in cfinput date validation code.
>
> 
>
><cfinput type="Text" name="EDate" value="" 
>
>message="Please enter a valid end date (mm/dd/yyyy)" validate="date"
>required="No" maxlength="10">
>
> 
>
>I'm also using CreateODBCDate and cfQueryParam in the query
>
> 
>
>End_Date <= <cfqueryPARAM value = #CreateODBCDate(form.EDate)#
>cfsqltype="CF_SQL_DATE">
>
> 
>
>My problem is that if a user enters a year less than 1000 (01/01/500),
>it gets through the CF validation but errors at the SQL level. The SQL
>Server settings are not available to me. I wan't to avoid adding
>JavaScript or doing anything server side. Are there any other
>possibilities?
>
> 
>
>Lee Surma
>
> 
>
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234508
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to