Why would you need to do IsDefined? I've set up hundreds of cfmails and
never had to do that here is the code(snip) from my site:
**************************************************************************
Page 1 (contactus_form.cfm)
**************************************************************************
<cfform action="contactus_form_submit.cfm" method="POST" enablecab="No">
First Name <CFINPUT name="firstname" type="text" size="25"
maxlength="50"><br>
Last Name<CFINPUT name="lastname" type="text" size="25" maxlength="50"><br>
Title<CFINPUT name="title" type="text" size="25" maxlength="50"><br>
Gender<CFINPUT name="gender" type="text" size="25" maxlength="50"><br>
**************************************************************************
**************************************************************************
Page 2 (contactus_form_submit.cfm)
**************************************************************************
<cfmail to="email" from="website" subject="A person is interested in hearing
more about you!"
Name: #form.title# #form.firstname# #form.lastname#
Company: #form.gender#
</cfmail>
**************************************************************************
Now, if you have checkboxes they can be a problem.
The workaround I had to do was make them Radio buttons with a yes/no (no
auto checked). That way everything has a value
-----Original Message-----
From: Mark Warrick [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 19, 2000 1:22 PM
To: [EMAIL PROTECTED]
Subject: RE: [CF-Talk] Form Submission
What's wrong is you can't embed the logic you're trying to embed into a
CFMAIL tag. You've got to figure something else out.
--------------------------------------------------------------
Mark Warrick
Phone: (714) 547-5386
Efax.com Fax: (801) 730-7289
Personal Email: [EMAIL PROTECTED]
Personal URL: http://www.warrick.net
Business Email: [EMAIL 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] 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 these tags implies that you want
> to use grouped processing. However, 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
> *
> *
> * 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 "">
> * <cfoutput>#field#: #Evaluate(field)#</cfoutput><br>
> * </cfif>
> * </cfloop>
> *
> * -David (hoping I didn't omit a necessary pound sign)
> *
> * On Tue, 19 Sep 2000 09:51:23 -0400 Peter Benoit
> * <[EMAIL PROTECTED]> writes:
> * > I want to email the results of a rather large form to someone. I
> * > can't
> * > verify that all the form fields have been filled out prior to the
> * > submission
> * > (no client side scripting allowed), so how can I do this without a
> * > huge
> * > number of :
> * >
> * > <cfif IsDefined('form.whatever')>#form.whatever#</cfif>
> * >
> * > I end up typing this over and over for each form field.
> * Is there a
> * > better
> * > way of doing this?
> * ________________________________________________________________
> * YOU'RE PAYING TOO MUCH FOR THE INTERNET!
> * Juno now offers FREE Internet Access!
> * Try it today - there's no risk! For your FREE software, visit:
> * http://dl.www.juno.com/get/tagj.
> * -------------------------------------------------------------
> * -----------------
> * Archives: http://www.mail-archive.com/[email protected]/
> * To Unsubscribe visit
> * http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lis
> ts/cf_talk or send a message to [EMAIL PROTECTED] with
> 'unsubscribe' in the body.
>
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
_talk or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.