House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Newbie (CF-Newbie)

Remove Symbols from Form fields

Author:
Andrew Scott
02/19/2010 03:23 AM

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. 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.


Search cf-newbie

February 11, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29