Yeah, since you are scoping the struct before setting the values you need to 
do:

<cfset session.addressinfo.firstname=FORM.firstname>
instead of
<cfset addressinfo.firstname=FORM.firstname>

Otherwise it is only setting the values for the local struct rather than the 
session scoped "version" of the struct.



-- Josh




----- Original Message ----- 
From: "Phillip Perry" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Thursday, April 27, 2006 2:47 PM
Subject: RE: Struct not persistant


> -----Original Message-----
> From: Ian Skinner [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 27, 2006 5:29 PM
> To: CF-Talk
> Subject: RE: Struct not persistant
>
>
> Can you show more of your code?
>
>
> ---------------------------------------
>
> Here's the top portion...
>
> <cfparam name="session.addressinfo" TYPE="struct" default="#structnew()#" 
> />
>
> <cfset addressinfo.firstname=FORM.firstname>
> <cfset addressinfo.lastname=FORM.lastname>
> <cfset addressinfo.telephone=FORM.telephone>
> <cfset addressinfo.telephone=FORM.fax>
> <cfset addressinfo.email=FORM.email>
>
> .....etc. etc. etc.
>
> Thats my include template. There is more obviously but the rest is pretty
> much the same.
>
>
> Phil
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238985
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to