Forgot to mention.... Just call the tag at the top of every page that
receives the form and/or needs the form data.

-----Original Message-----

You could try something like this.... It is a custom tag that I wrote for a
multi-step ordering process. It takes all the form.vars and sticks them in a
session.struct.vars then converts all the fields in the struct back into
form vars. You can just keep running through multiple forms and end up with
all your form.vars for the final step. All you would have to do is modify
this to match your array instead of a struct.

Justin Hansen - [EMAIL PROTECTED] 
Project Leader / Web Application Developer
Interactive Business Solutions, Inc
816-221-5200 ext. 1305


> CODE ______________________________________________________________

<!--- make sure it exists --->
<cflock type="READONLY" scope="SESSION" timeout="10">
        <cfset locStructDefined = isDefined("session.Product")>
</cflock>

<!--- create sturct if it does not exist --->
<cfif locStructDefined eq 0>
        <cflock type="EXCLUSIVE" scope="SESSION" timeout="10">
                <cfscript>
                        session.Product = StructNew();
                </cfscript>
        </cflock>
</cfif>

<!--- convert form.vars to session.StructName.vars --->
<cflock type="EXCLUSIVE" scope="SESSION" timeout="10">
        <!--- New Stuff -- --->
        <cfloop collection="#form#" item="locField">
                <cfif locField neq "FIELDNAMES">
                        <cfset "session.Product.#locField#" =
evaluate("form.#locField#")>
                </cfif>
        </cfloop>
</cflock>

<!--- convert session.StructName.vars to form.vars --->
<cfscript>
        locProductStruct = StructNew();
</cfscript>
                
<cflock type="READONLY" scope="SESSION" timeout="10">
        <cfset locProductStruct=Duplicate(session.Product)>
</cflock>

<cfloop collection="#locProductStruct#" item="locField">
        <cfset "form.#locField#" = evaluate("locProductStruct.#locField#")>
</cfloop>

> /CODE _____________________________________________________________

-----Original Message-----
From: Don Buck [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 12:32 PM
To: CF-List
Subject: [KCFusion] Arrays


I'm storing stuff in an array on one form.  Is there any way to pass the
whole array to another form intact?
Without having to break it down into its individual elements

Don Buck
(816) 761-5430
Chief Information Officer
ShareValue Inc.
http://www.sharevalue.com

 
 
______________________________________________________________________
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives........ http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe.................... mailto:[EMAIL PROTECTED]
To Unsubscribe................ mailto:[EMAIL PROTECTED]
 
 
 
______________________________________________________________________
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives........ http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe.................... mailto:[EMAIL PROTECTED]
To Unsubscribe................ mailto:[EMAIL PROTECTED]
 
 
 
______________________________________________________________________
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives........ http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe.................... mailto:[EMAIL PROTECTED]
To Unsubscribe................ mailto:[EMAIL PROTECTED]
 

Reply via email to