<cfloop index="thefield" list="#FORM.fieldnames#">
<cfif listFindNoCase(bannedWordsList, evaluate('FORM.' & thefield),
",")>
<cfset valid_email = 0>
</cfif>
</cfloop>
First get rid of the unnecessary evaluate.
Second, listFind is not going to find partial matches. To do that you are
going to need to do in individual find on each list/field combination,
requiring another loop.
<cfloop index="thefield" list="#FORM.fieldnames#">
<cfloop list"#bannedWordsList#" index="bannedWord">
<cfif findNoCase(bannedWord, form[theField)>
<cfset valid_email = 0>
</cfif>
</cfloop>
</cfloop>
This does not look very efficient. A description of your requirement might
generate a better solution.
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
---------
| 1 | |
--------- Binary Soduko
| | |
---------
"C code. C code run. Run code run. Please!"
- Cynthia Dunning
Confidentiality Notice: This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235931
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54