Form.Fieldnames is a list of all the form fields. You want just "Form".
Also, you can't place a structure in a form field like that, it's not a
simple string. You can, however, convert the form structure to a wddx packet
and put _that_ in a form field.
<CFSET Form.Foo = 1>
<CFWDDX ACTION="CFML2WDDX" INPUT="#Form#" OUTPUT="Formpacket">
<FORM>
<CFOUTPUT>
<INPUT TYPE="hidden" NAME="OldData" VALUE="#FormPacket#">
</CFOUTPUT>
</FORM>
You may want to URL encode FormPacket to ensure no line breaks are in.
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Deanna Schneider [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 31, 2001 11:38 AM
> To: CF-Talk
> Subject: fieldnames structure
>
>
> Hi Folks,
> I'm trying to figure out this structure thing, and I have a
> project where I
> have to grab all the fieldname/value pairs from one form, hold them while
> the user fills out a second page, then send them along in a
> hidden field to
> the action page.
>
> What's the best way to do this? I thought I could just do something like:
> <input type="hidden" name="page1struct"
> value="#structcopy(form.fieldnames)#"> But that throws an error.
>
> -d
>
>
>
> Deanna Schneider
> Interactive Media Developer
> [EMAIL PROTECTED]
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists