special characters
I stored all the special chars into the list and compare with the form variable if finding any special one then replace with _ but i can't make it work, any helps are really appreciated.
<cfset SpecialChars ="/,\,(,),[,],{,},@,$,##,?,!,<,>,=,:,;,'"" ">
<cfif ListFindNocase(SpecialChars, form.center_name, ',' )>
<cfset type = REReplace(form.center_name,"SpecialChars","_'","ALL") >
<cfelse>
<cfset type = #form.center_name#>
</cfif>
Thanks,
KT
