Why don't you just suppress length the entry on the form input using
maxlength:
<input type="text" name="hours" size="5" maxlength="2">

Then just use a form-side js validation or a cf action page validation with
isNumeric(FORM.hours)



> -----Original Message-----
> From: Rick Dennis [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 23, 2006 11:23 AM
> To: CF-Talk
> 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:257778
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