I like using WDDX for multipart forms. You can easily serialise the
entire form struct and pass it in a single hidden field (also means you're
not relying on cookies or session vars). As long as every field name is
unique across the multi-part form it's fast and easy.
I stole a lot of this processing techinque from an article in CFDJ (Vol.
2 Issue 2 - Feb. 2000); while the article a little too gui/M$ infantile
naming schemes for my taste (No offence to the author here at all, just a
personal taste preference) some of its underlying principles are great.
If you need it really quick and don't care much about code reuse for the
moment, post directly to the second form in the series, serialise the data
at the top of that form, and shove it in a hidden field. On the final page
you'll then have to just WDDX the first pages results.
Anyways, play w/ the concept it's very flexible and doesn't require
things like cookies and sessions.
-----Original Message-----
From: Kay Smoljak [mailto:[EMAIL PROTECTED]]
Sent: January 22, 2001 03:17
To: CF-Talk
Subject: dynamic form vars
Hi all,
I'm not sure how to go about doing this.
I have a dynamically generated form, which can have any number of radio
buttons. I want to submit this form to a page with another form. Once this
second form is submitted, I need to process all of the data from both forms
on one page.
What I'm not sure about is how I can store the values from the first form on
the second form page. Normally I would put them in hidden fields, but it's a
problem seeing as I don't know how many there will be or what they will be
called.
Any pointers? I'm sure it's something obvious but my brain appears to have
stopped responding.
Kay.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists