
February 5th, 2004, 01:01 PM
|
|
Moderator
|
|
Join Date: Jun 2002
Location: Raleigh, NC
|
|
|
Yes, you can use findNoCase() to do this. In fact, you can easily combine a list of words with the find, in case the user name has a bad word in it anywhere, even if it is combined with another word. Something like this:
<cfset badWordList = "word1,word2" />
<cfloop list="#badWordList#" index="thisWord">
<cfif findNoCase( thisWord, form.userName )>
bad word found code goes here...
</cfif>
</cfloop>
|