- see footer for list info -<
You can't pass a structure in a hidden field. Hidden fields just accept
simple and not complex values (as struct, arrays, objects etc.)
BUT, what you can do is:
<!--- Add all of the previous form details to a structure to pass to next
form --->
<cfset Part1=StructNew()>
<cfset Part1.IncidentDate = #form.incidentDate#>
<!--- New code here --->
<cfwddx action="cfml2wddx" input="#Part1#" output="wddxPart1">
<!--- Create a hidden field to pass the structure --->
<cfoutput>
<input type="hidden" name="St_Part1" value="#wddxPart1#">
</cfoutput>
On the other page, you just use reverse engineering:
<cfwddx action="wddx2cfmx" input="#form.St_Part1#" output="Part1">
And then, here is your struture.
Hope it helps,
Cheers
Marcos Placona
----- Original Message -----
From: "Paul Swingewood" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, March 17, 2006 4:57 PM
Subject: [CF-Dev] Structures ....
>- see footer for list info -<
Whats wrong with is ....?
<!--- Add all of the previous form details to a structure to pass to next
form --->
<cfset Part1=StructNew()>
<cfset Part1.IncidentDate = #form.incidentDate#>
<!--- Create a hidden field to pass the structure --->
<cfoutput>
<input type="hidden" name="St_Part1" value="#Part1#">
</cfoutput>
I want to create a structure and pass it as a hidden field .......
The idea is to keep adding t the structure on a multipage form setup so
that when I get to the end of the form I have all of the data in a
structure ....
Regards - Paul
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -<
- Forum provided by www.fusetalk.com -<
- DHTML Menus provided by www.APYCOM.com -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -<
- Forum provided by www.fusetalk.com -<
- DHTML Menus provided by www.APYCOM.com -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<