Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I set session variables like this...

Status
Not open for further replies.

Markh51

Programmer
May 20, 2003
81
GB
<CFSET fieldNames = &quot;roger,jim,bob&quot;>
<cfloop list=&quot;#FieldNames#&quot; index=&quot;Field&quot;>
<CFPARAM NAME=&quot;session.step1[Field]&quot; DEFAULT=&quot;&quot;>
</cfloop>

When I use the above code I get an error, I can get the above to work with CFSET but not CFPARAM. What am I doing wrong ?

Many Thanks,
Mark.
 
Use the CFSET tag instead of the CFPARAM

<cfloop list=&quot;#FieldNames#&quot; index=&quot;Field&quot;>
<CFSET session.step1[Field]=&quot;&quot;>
</cfloop>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top