|
Gary,
Are you looking at client
side or server side? Server side I would use something like the following
regular _expression_ CF code:
<cfset testResult =
reFind("[a-zA-Z0-9]*", inputVar, 1,
"true")>
<cfif
testStruct.len[1] neq len(inputVar)>
<!--- other characters than letters and numbers are in the string
--->
</cfif>
Client side use
_javascript_ and a similar regular _expression_ check.
Now if someone knows how
to use a negation operation in a regular _expression_ it gets a lot
easier...
Tom From: Alford, Gary L [mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 7:55 AM To: DFW ColdFusion Users Group (E-mail) Subject: Form Field Validation... How would I perform a simple validation to
ensure that a form field entry contains only numbers and/or letters (no special
characters or spaces)? Gary L. Alford Manufacturing Operations Project Specialist Bell Helicopter XWorx Phone: (817) 280-6233 Fax: (817) 278-6233 [EMAIL PROTECTED] I have not failed. I've found 10,000 ways that won't work. Thomas A. Edison
|
<<attachment: Glacier Bkgrd.jpg>>
