The following code will create and populate a session variable for each form field passed to it. It works great except when a form field contains inch marks (double quotes) as in 1.5" binder. In that case the session variable ends up containing 1.5.
Is there a way to escape the variable form[frmVar] in the structinsert statement so that it will not be cropped at the inch mark?
<cfloop collection="#form#" item="frmvar"> <!--- loop through the form variables --->
<cfif #frmVar# neq "Submitme" and #frmVar# neq "fieldnames"> <!--- exclude the submit button and the fieldnames string --->
<cfset v = structinsert(session,frmVar,form[frmVar],true)> <!--- create a session variable named after the form field and install the form field's value --->
</cfif>
</cfloop>
David Boehm
M&T Printing Group
907 Frederick St.
Kitchener, ON
N2B 2B9
(519) 571-0101
[EMAIL PROTECTED]
