Is it possible to copy the structure FORM. to SESSION scope upon form submission <I know this much is possible>
and then for example click a link going back to that form and copy the structure back to the form structure which in turn would prepopulate my form fields again, if that makes sense?
My form fields
<input type="text" name="emailUsername" value="#form.emailUsername#" size="20" maxlength="50" style="text-align: right;">
I have been copying the FORM structure to the SESSION scope as I go through these forms, and if the struct already exists I append it, which all works fine, but when I run
<!--- copy structure to local scope --->
<cflock timeout="10" throwontimeout="no" type="readonly" scope="session">
<cfset form = duplicate(session.newContact.form)>
</cflock>
It doesn't prepopulate my form fields
I also tried
<cfset form = structNew()>
<!--- copy structure to local scope --->
<cflock timeout="10" throwontimeout="no" type="readonly" scope="session">
<cfset form = duplicate(session.newContact.form)>
</cflock>
Still no luck
What SCOPE is the FORM structure in anyway? I would say it's variables.FORM right?
Taco Fleur
07 3535 5072
Tell me and I will forget
Show me and I will remember
Teach me and I will learn
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
