Hi guys,

I have the following filter for an email form...

<cfset bannedWordsList = "mike,little,good,bad"> (I have removed actuals
so this gets through.)

<cfif isDefined("FORM.fieldnames")>

        <cfloop index="thefield" list="#FORM.fieldnames#">
                <cfif listFindNoCase(bannedWordsList, evaluate('FORM.' &
thefield), ",")>
                        <cfset valid_email = 0>
                </cfif>
        </cfloop>

</cfif>

Now this works fine if for example the FORM.name = "mike", but not if
the FORM.name = "big mike".

What am I doing wrong.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235929
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to