Well, I rolled my own structure:
<CFSET STTEMP = STRUCTNEW()> <!--- temporary structure --->
<CFSET Form_Fields = STRUCTNEW()> <!--- final structure for Form values --->
<CFLOOP index="FieldName" list="#form.fieldnames#">
<CFSET STTEMP["Field_Name"] = "#FieldName#">
<CFSET STTEMP["Field_Value"] = "#Evaluate(FieldName)#">
<CFSET Form_Fields[STTEMP["Field_Name"]] = STRUCTCOPY(STTEMP)>
<CFSET TMPVAR = STRUCTCLEAR(STTEMP)>
</CFLOOP>
<cfwddx action="CFML2WDDX" input="#form_fields#" output="aWDDXpacket">
<CFOUTPUT>#aWDDXpacket#</CFOUTPUT>
and I find that "email" as the name of a form field is apparently a
reserved word. That is, any value entered into the form field named
"email" was output as "" in <CFOUTPUT>#aWDDXpacket#</CFOUTPUT>. Changing
the name to e_mail cured the problem.
Is this a well-known reserved word in CFML2WDDX?
best, paul
PS> Happy New Millennium ;-)
At 04:53 PM 12/29/00 -0500, you wrote:
>In 4.5, you get a structure called "form" that you can do this with:
>
><cfwddx action="CFML2WDDX" input="#form#" output="aWDDXpacket">
>
>Then you can save that string, aWDDXpacket, as a client variable.
>
>Hal Helms
>== See www.ColdFusionTraining.com for info on "Best Practices with
>ColdFusion & Fusebox" training, Jan 22-25 ==
>
>
>-----Original Message-----
>From: paul smith [mailto:[EMAIL PROTECTED]]
>Sent: Friday, December 29, 2000 4:38 PM
>To: CF-Talk
>Subject: Forfields & WDDX
>
>
>What's a slick way to put all FormFields (name & value) into WDDX for
>placement into a client variable?
>
>best, paul
>
~~~~~~~~~~~~~ Paid Sponsorship ~~~~~~~~~~~~~
Get Your Own Dedicated Win2K Server! Instant Activation for $99/month w/Free
Setup from SoloServer PIII600 / 128 MB RAM / 20 GB HD / 24/7/365 Tech Support
Visit SoloServer, https://secure.irides.com/clientsetup.cfm.
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists