Question
CFLOOP a CFINSERT
I have created a emailer and you can add up to 8 different
recipeints. I am trying to insert the recipeints name in a databse
in there own row.
I can not figure out how to cfloop my cfinsert to do this. I got to the point where it adds all the recipeints into 8 rows.
Here is my code:
<cfloop index="idx" list="#form.cemail#">
<cfinsert datasource="emailer" tablename="VAprevention">
<cfmail to="#idx#" from="#form.remail#" subject="#form.subject#" cc="#form.remail#" type="html">
</cfmail>
</cfloop>
I can not figure out how to cfloop my cfinsert to do this. I got to the point where it adds all the recipeints into 8 rows.
Here is my code:
<cfloop index="idx" list="#form.cemail#">
<cfinsert datasource="emailer" tablename="VAprevention">
<cfmail to="#idx#" from="#form.remail#" subject="#form.subject#" cc="#form.remail#" type="html">
</cfmail>
</cfloop>
