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>

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC was created by Raymond Camden. This blog is running version 5.9.001. Contact Blog Owner