Kill that evaluate() too: <cfset session[fieldname] = form[fieldname] />
> -----Original Message----- > From: Ben Doom [mailto:[EMAIL PROTECTED] > Sent: Monday, March 03, 2003 11:03 AM > To: CF-Talk > Subject: RE: dynamically created session variables > > > IIRC, you need to do > > <cfset session["#fieldname#"] = evaluate("fieldname")> > > > -- Ben Doom > Programmer & General Lackey > Moonbow Software, Inc > > : -----Original Message----- > : From: Ali Daniali [mailto:[EMAIL PROTECTED] > : Sent: Monday, March 03, 2003 1:48 PM > : To: CF-Talk > : Subject: dynamically created session variables > : > : > : I'm trying to load form variables into session variables in an > : application...but I'm having problems with the creating > : dynamically created > : session variable names. Any help is appreciated. > : > : <CFLOOP index="FieldName" list="#Form.FieldNames#"> > : <CFLOCK TIMEOUT="30" THROWONTIMEOUT="No" TYPE="EXCLUSIVE" > : SCOPE="SESSION"> > : <CFSET Session.&"#FieldName#" = "#Evaluate(FieldName)#"> > : </CFLOCK> > : </CFLOOP> > : > : Thanks, > : Ali > : > : ------------------------------------------------------- > : This message (including any attachments) may contain > : confidential and privileged information. If you are > : not the intended recipient, please notify the sender > : and delete all copies of the original message without > : using or disclosing it. Thank you. > : ------------------------------------------------------- > : > : > : > : > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

