that sounded kinda dumb :-/ 2 digits and thay have to be numbers...duuuuh.


----- Original Message ----- 
From: "Doug Brown" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Monday, October 23, 2006 12:56 PM
Subject: Re: Validate is form field numeric and length of filed


> You could do it like so...If you do not want limit your input length. That
> would be the best way though.
>
>
> <cfif len(form.hours) NEQ 2 OR not(isNumeric(hours))>You need to enter 
> only
> 2 digits and they can only be numbe. You entered #form.hours#</cfif>
>
>
>
> ----- Original Message ----- 
> From: "Rick Dennis" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[email protected]>
> Sent: Monday, October 23, 2006 12:23 PM
> Subject: Validate is form field numeric and length of filed
>
>
>>I have a form input called "hours".
>>
>> how would i write a <CFIF>
>>
>> that would check the length of 2 and make sure it was numeric only? no
>> spaces or special characters?
>>
>> thanks.
>>
>>
>> Rick Dennis
>>
>>
>>
>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257787
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to