If you don't want to create the hidden form fields by hand, you can always
loop over the FORM.FieldNames list as in:

   <CFLOOP LIST="#FORM.FieldNames#" INDEX="currEle">
      <CFOUTPUT>
         <INPUT TYPE="Hidden" NAME="#currEle#"
          VALUE="#Replace(Evaluate("FORM.#currEle#"), '"', "&quot;",
"ALL")#">
      </CFOUTPUT>
   </CFLOOP>

If you just don't want to pass all of those variables along from page to
page, you can store them in SESSION.  Then, you'd use code like:

   <CFLOOP LIST="#FORM.FieldNames#" INDEX="currEle">
      <CFSET SetVariable("SESSION.#currEle#", Evaluate("FORM.#currEle#"))>
   </CFLOOP>

Or something like that.

Warning:  I'm dead tired at the moment and have not tested any of this code.
So there are probably some nasty problems with the code 8^).

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -----Original Message-----
> From: Brian Scandale [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, November 23, 2002 1:27 PM
> To: CF-Talk
> Subject: RE: temp variable storage?
>
>
> I would if I could but I can't. How the data is written depends
> upon the choices they make across the next 6 forms. Contact me
> off list if you want the gnarly details.
>
> So how are you all storing form.fields? I really don't want to
> create 100 hidden forms fields and pass them across all the pages
> until I need them again. Structures??? perhaps?
>
> At 10:21 AM 11/23/02, you wrote:
> >What dictates that the first form can't be written to the DB as
> soon as they
> >submit it?
> >
> >Ken
> >
> >
> >
> >-----Original Message-----
> >From: Brian Scandale [mailto:[EMAIL PROTECTED]]
> >Sent: Saturday, November 23, 2002 1:02 PM
> >To: CF-Talk
> >Subject: temp variable storage?
> >
> >
> >I have a large form (around 100 text boxes and check boxes etc...).  Once
> >the user submits it they still need to navigate about 6 more forms before
> >the data can be written to a database.
> >
> >How do I go about storing the form data temporarily until I can
> write it to
> >disk? I suspect there are more than one ways that you all are doing this.
> >
> >Thanks for a few clues.
> >
> >Brian
> >
> >
> >
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to