Put all the sesion variables in a structure and convert it to a wddx packet
using
<cfwddx action="cfml2wddx"
          input="structure"
          output="wddxpack">

<form method="post" action="x.cfm">
        <input type="hidden" name="wddxpack" value="#wddxpack#">
        <input type="submit">
</form>

....Ofcourse you'll have to run the cfwddx tag again on the x.cfm page to
extract the structure.  But when you so this, everything is exact.

-----Original Message-----
From: Joshua Miller [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 12, 2000 2:40 PM
To: CF-Talk
Subject: SESSION Vars to FORM vars


This is a multi-part message in MIME format.

------=_NextPart_000_0003_01C0345A.4C00DD80
Content-Type: multipart/alternative;
        boundary="----=_NextPart_001_0004_01C0345A.4C00DD80"


------=_NextPart_001_0004_01C0345A.4C00DD80
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Any way to take a whole set of variables and store them in the FORM scope
without a CFSET for each variable?
I need to output all the session variables to a database using cfinsert and
I believe they have to be converted to FORM.scope before you can do this ...
or is that wrong?

eg: <cfset FORM.foo=#SESSION.foo#>

Joshua Miller
Web Development
Eagle Technologies Group, Inc.
Business Solutions for the Next Generation
www.eagletgi.com
[EMAIL PROTECTED]


------=_NextPart_001_0004_01C0345A.4C00DD80
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D090203718-12102000>Any =
way to take a=20
whole set of variables and store them in the FORM scope without a CFSET =
for each=20
variable?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D090203718-12102000>I need =
to output all=20
the session variables to a database using cfinsert and I believe they =
have to be=20
converted to FORM.scope before you can do this ... or is that=20
wrong?</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D090203718-12102000>eg: =
&lt;cfset=20
FORM.foo=3D#SESSION.foo#&gt;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Joshua Miller<BR>Web =
Development</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Eagle Technologies Group, =
Inc.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Business Solutions for the Next=20
Generation</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://www.eagletgi.com/">www.eagletgi.com</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A></FO=
NT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_001_0004_01C0345A.4C00DD80--

------=_NextPart_000_0003_01C0345A.4C00DD80
Content-Type: text/x-vcard;
        name="Joshua Miller.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
        filename="Joshua Miller.vcf"

BEGIN:VCARD
VERSION:2.1
N:Miller;Joshua
FN:Joshua Miller
ORG:Eagle Technologies Group, Inc.;Web Development
TITLE:Web Developer
NOTE;ENCODING=3DQUOTED-PRINTABLE:Joshua Miller=3D0D=3D0AWeb Site =
Development=3D0D=3D0AEagle Technologies Group, Inc.=3D
=3D0D=3D0ABusiness Solutions for the Next =
Generation=3D0D=3D0Ahttp://www.eagletgi.co=3D
[EMAIL PROTECTED]=3D0D=3D0A=3D0D=3D0A =3D0D=3D0A=20
TEL;WORK;VOICE:(304) 456-4942
TEL;HOME;VOICE:(304) 456-4942
ADR;WORK:;Clarksburg, WV;HC 63 Box 52c;Arbovale;WV;24915;United States =
of America
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:Clarksburg, WV=3D0D=3D0AHC 63 Box =
52c=3D0D=3D0AArbovale, WV 24915=3D0D=3D0AUnited States=3D
 of America
URL:
URL:http://www.eagletgi.com
ROLE:Web Application Developer
BDAY:20000826
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20001005T135238Z
END:VCARD

------=_NextPart_000_0003_01C0345A.4C00DD80--

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to