There are a number of ways you can approach this.

But first let me ask you what version of ColdFusion are you using, secondly
what are the fields meant to contain?

You could do a cfinput inside a form, and if it is an alphanumeric input put
the required type on the input to match.

I would also do a server side validation just in case they have JavaScript
turned off, and do a reFind on the inputed value and return the user back to
the input page containing the form with an invalid selection.

I hope this gets you moving in the right direction.




-----Original Message-----
From: Gary Strommen [mailto:[email protected]] 
Sent: Thursday, 18 February 2010 7:39 AM
To: cf-newbie
Subject: Remove Symbols from Form fields


Is there an easy way to search the text in a form (filled in by a user) and
automatically remove ALL symbols?  I am currently using the "ReReplace"
command independently on all possible symbols I can think of but I keep
missing some symbol options.  There has to be an easier more efficient way.

The users repeatedly add symbols even after telling them not to and they
break the database. 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4974
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to