Pete: 1. You could check for the existence of a variable (or function) in the cfinclude, like this:
<cfif NOT isDefined("var_name_from_include")> <cfinclude template="whatever.cfm"> </cfif> 2. There are some custom tags/udfs out there for this, but I haven't used them. I'd check CFLIB.ORG, or maybe someone else here can recommend something specific. Dave -----Original Message----- From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2008 9:46 AM To: CF-Talk Subject: 2 questions: ensuring a file is only included once, and scrubbing form and url scopes I've got two questions. First: Is there a way to make sure a file is only cfincluded once? I'm using cfinclude to include a UDF library in the onRequestStart() method of my application.cfc, but in my debug output, that file has a file count of 7, which has led me to realize that it's also being included when all of the other cfc and cfm files that go into the page are being called. Second: What method/code do you use to scrub/trim values in the FORM and URL scopes? Thanks Pete ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310054 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4