a structure in and of itself is just...a variable.  Whether or not it
"persists" depends on the scope in which the variable (structure)
exists.

the form scope (which is a structure) exists on the form's action
page, and will not persist beyond that.

You could put it into the session scope:

<cfset session.userFormData = duplicate(form) />

Make sure you use duplicate, since structCopy will create a pointer to
the form scope/struct, which will cease to exist past the action page.
 duplicate() creates a deep copy and the new variable will exist on
its own, independent of the original structure from which it was
copied.

On 6/21/06, Scott Stewart <[EMAIL PROTECTED]> wrote:
> All:
>
>
>
> Are ColdFusion structures meant to be persistent across pages. I have an app
> where I need to trap form field data, if a user has entered an ID that
> already exists, and give them the option of reviewing the existing and then
> submitting without re-entering.
>
>
>
> Scott Stewart
>
> ColdFusion Developer/Administrator
>
> GlobalNet Services, Inc.
>
> www.gnsi.com <BLOCKED::http://www.gnsi.com/>
>
> 301-770-9610 x358 (Voice)
>
> 301-770-9611          (Fax)
>
>
>
> The information contained in this message may be privileged, confidential,
> and protected from disclosure.  If the reader of this message is not the
> intended recipient, or any employee or agent responsible for delivering this
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution, or copying of this communication is strictly
> prohibited.  If you have received this communication in error, please notify
> us immediately by replying to the message and deleting it from your
> computer.
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244382
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to