> First: Is there a way to make sure a file is only > cfincluded once?
You can set a special variable in the included file and check for it before including it anywhere to ensure it only gets loaded once no matter how many times you call it. In the include: <cfset someSpecialVariable = 1> When you include that file: <cfif not isDefined("someSpecialVariable")> <cfinclude template="myInclude.cfm"> </cfif> > Second: What method/code do you use to scrub/trim values in the > FORM and URL scopes? That depends on the type of data being passed in. For general text fields a trim() will do the job, and you can combine that with other functions to ensure it won't cause a SQL truncation error. For integer values I generally use: <cfset url.someID = min(abs(val(trim(url.someID))), 2147483647)> This guarantees a positive integer to prevent errors in a variety of places. -Justin Scott ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:310055 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4