<cfset the_field = listToArray("contact_correspondence,contact_email,contact_event_off_camp us,")> <cfloop index="ii" from="1" to="#arrayLen(the_field)#"> <cfset var1=the_field[ii]> <cfset variables[var1] = structKeyExists(form,var1)> <cfoutput>#variables.var1#:#contact_event_off_campus#</cfoutput><br> </cfloop>
I'm not exactly sure what you are trying to accomplish here, but I think you maybe wanting the <cfparam ...> tag. <cfloop index="ii" from="1" to="#arrayLen(the_field)#"> <cfparam name="#the_field[ii]#" default="defaultValue"> ... </cfloop> -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA --------- | 1 | | --------- Binary Soduko | | | --------- "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242063 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