Something like
cfloop list="#form.fieldnames#" index=idx
#idx# = #evaluate(idx)#br
/cfloop
~Justin
- Original Message -
From: "Peter Benoit" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 19, 2000 2:51 PM
Subject: [CF-Talk] Form Submission
I want to email
Peter,
You'll probably get several responses suggesting that you use
FORM.FieldNames. Be aware, though, that some form fields are passed even
if they have no value, so you may want to include a check for that:
cfloop list="#form.fieldnames#" index="field"
cfif Evaluate(field) is not ""
Not sure I understand this. Is form.fieldnames a preset list of all the
fieldnames from the submitted form?
* -Original Message-
* From: JustinMacCarthy [mailto:[EMAIL PROTECTED]]
* Sent: Tuesday, September 19, 2000 9:59 AM
* To: [EMAIL PROTECTED]
* Subject: Re: [CF-Talk] Form
, the outer tag does not specify a query
to loop over or a group to process.
What did I do wrong?
* -Original Message-
* From: David Shadovitz [mailto:[EMAIL PROTECTED]]
* Sent: Tuesday, September 19, 2000 10:26 AM
* To: [EMAIL PROTECTED]
* Subject: Re: [CF-Talk] Form Submission
Yes
~Justin
- Original Message -
From: "Peter Benoit" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 19, 2000 3:27 PM
Subject: RE: [CF-Talk] Form Submission
Not sure I understand this. Is form.fieldnames a preset list of all the
fieldnames from the subm
:[EMAIL PROTECTED]]
Sent: Tuesday, September 19, 2000 9:42 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [CF-Talk] Form Submission
I put that in my cfmail tag and got an error:
Error Diagnostic Information
Invalid tag nesting configuration
A CFOUTPUT tag is nested inside a CFMAIL tag
PROTECTED]]
* Sent: Tuesday, September 19, 2000 11:09 AM
* To: [EMAIL PROTECTED]
* Subject: Re: [CF-Talk] Form Submission
*
*
* Right, that's what I get for posting a snippet out of context. Just
* remove the cfoutput and /cfoutput.
*
* -David
*
* On Tue, 19 Sep 2000 10:43:25 -0500 [EMAIL
Try something like this:
cfparam name="field1" default=""
cfparam name="field2" default=""
cfparam name="field3" default=""
cfparam name="field4" default=""
cfparam name="go" default=""
cfparam name="missingfields" default=""
cfoutput
form action="#script_name#" method="post"
input
To: '[EMAIL PROTECTED]'
Subject: RE: [CF-Talk] Form Submission
I put that in my cfmail tag and got an error:
Error Diagnostic Information
Invalid tag nesting configuration
A CFOUTPUT tag is nested inside a CFMAIL tag with no GROUP= or QUERY=
attributes . This is not allowed. Nesting
Message-
From: Peter Benoit [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 19, 2000 8:18 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [CF-Talk] Form Submission
Yes! It worked, thank you.
One last question would be formatting the output. The line breakbr
doesn't work in my email
IL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--------------
-Original Message-
From: Peter Benoit [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 19, 2000 7:42 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [CF-Talk
A longer cludgy way would be to put the cfoutput before the cfmail
Like this:
cfoutput
cfif #isdefined(form.firstname)#
cfset #firstname# = #form.firstname#
cfelse
cfset #firstname# = "Not Entered"
/cfif
!--- repeat for all form entries (gah!)---
/cfoutput
cfmail
#firstname#
/cfmail
But
One last question would be formatting the output. The line breakbr
doesn't work in my email client which isn't setup to use HTML email. Is it
possible to put a line break in some other way?
CFMAIL will format your text as it's typed (plain text, not html).. so a
line break in the code (b/w
13 matches
Mail list logo