Hello,

I am creating a form on the fly, and on the action page I am trying to
create session variables like this:

<cfloop index="priority_label" list="#fieldnames#">
        <cfif ListFirst(priority_label, "_") eq "priority">
                <cfset priority = ListLast(priority_label, "_")>
                <cfset session.delivery.#priority# = Evaluate(priority_label)>
        </cfif>
</cfloop>

so if three form vars were passed: priority_rush, priority_standard,
priority_economy, I want to create three session variables named:

session.delivery.rush
session.delivery.standard
session.delivery.economy

and assign corresponding values to them. How would I do that? Thanks! (My
syntax is obviously incorrect).

------------------------------------------------------------------------------
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