Probably something more along the lines of:

<cfif Refind("^[A-Za-z0-9]+$", FORM.field) EQ 0>
   <!--- didn't match, send them back --->
</cfif>

Jim


----- Original Message ----- 
From: "Steve Oliver" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 12:30 PM
Subject: RE: A-Z 0-9 form validation


> Ok, in that case in your action page you could do something like:
> 
> <cfif refind("A-Za-z0-9",FORM.field) EQ 0>
>    <!--- didn't match, send them back --->
> </cfif>
> 
> ______________________
> steve oliver
> atnet solutions, inc.
> http://www.atnetsolutions.com
> 
> 
> -----Original Message-----
> From: Adrian Cesana [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, February 14, 2002 2:23 PM
> To: CF-Talk
> Subject: RE: A-Z 0-9 form validation
> 
> 
> Only want to allow A-Z or 0-9 character/digits in the form input.
> Anything
> else I want to return a message back to the user to fix the input.  I
> have
> tons of other server side validation happening so I want to keep it on
> the
> server side, rather than using JS.
> 
> Still running 4.01....
> 
> 
> -----Original Message-----
> From: Bryan Stevenson [mailto:[EMAIL PROTECTED]]
> 
> can you elaborate on A-Z and 0-9?
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to