Noob question here, I've got all this data in an array, but I can't figure out how to do anything with it. I need to use one element in a SQL update query, the other element is just for display purposes only. This works:
<cfset RecID=[]>
<cfset DistListNames=[]>
<cfloop list="#form.ListName#" index="listcount">
<cfset arrayAppend(RecID, listFirst(listcount,":"))>
<cfset arrayAppend(DistListNames, listLast(listcount, ":"))>
</cfloop>
<cfdump var=#RecID#>
<cfdump var=#DistListNames#>
But other than displaying those little green boxes on the action page, I can't do anything with it. How do I set variables from the contents of RecID and DistListNames?
Thanks
Aucun commentaire:
Enregistrer un commentaire