Yes you can, but you can't use the CFOUTPUT. And to beat Ray (who is
still sleeping), you don't need evaluate if you have CF 4.5+.

<cfmail ...>

<CFLOOP LIST="#FORM.FieldNames#" INDEX="ThisField">
FIELD=#ThisField#, VALUE=#Form[ThisField]#
</CFLOOP>

</cfmail>

Pascal

-----Original Message-----
From: Matt Robertson [mailto:[EMAIL PROTECTED]]
Sent: maandag 10 december 2001 2:45
To: CF-Talk
Subject: Stoopid forms question


Can I do this inside of a CFMAIL loop, when coming off of a form
submission?  I'm looking to just drop the code in, and given the nature
of the template it'd be used on it would be a bit of a pain to set up a
test.  Was hoping someone was immediately familiar with running CFLOOPs
inside of CFMAIL.


<CFLOOP LIST="#FORM.FieldNames#" INDEX="ThisField">
<CFOUTPUT>FIELD=#ThisField#, VALUE=#Evaluate(ThisField)#</CFOUTPUT>
</CFLOOP>

--Matt Robertson--
MSB Designs, Inc.
http://mysecretbase.com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to