Trim Form Fields

Easy way to trim form fields in ColdFusion

<!--- Trim all form fields --->
<cfloop list="#form.fieldnames#" index="field">
   <cfset temp = SetVariable("form.#field#", Trim(Evaluate("form.#field#")))>
</cfloop>

Welcome to a portion of my mind

After my previous hosting company went belly up, this blog has found a new home. Welcome. -Seth

BlogCFC was created by Raymond Camden. This blog is running version 5.9.001. Contact Blog Owner