James,
A couple of thoughts on your problem.  One is that if both pages use forms, you could 
pass the email variable as a hidden the entire way through.  Pass it from page 1 to 
page 2 as a URL parameter, then use <INPUT TYPE="Hidden" NAME="EMail" VALUE="#EMail#"> 
to pass it from page 2 to your action page.  This is a very clean way of passing your 
variables.  Hope this helps! 

Chris Ivey

MTS Systems Engineer
GTE Data Services: Temple Terrace, Florida
TSS Distributed - WAN Tools Group
Office: (813) 978-4844
Pager: (813) 303-1177
ICQ: 25717924


>Date: Tue, 11 Jul 2000 13:30:54 -0700
>From: "James Birchler" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Quick CFMAIL question
>Message-ID: <[EMAIL PROTECTED]>
>
>This is a multi-part message in MIME format.
>
>------=_NextPart_000_0011_01BFEB3C.3D4E73E0
>Content-Type: text/plain;
>       charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>
>I'm using a multi-page form to collect user info.  Page one collects an
>email address. This variable is passed to the page 2 template in the URL as
>
>http://www.domain.com/cfpage2.cfm?EMAIL=#email#
>
>In page 2, I collect more data, and upon form submission, email a confirm
>message with <CFMAIL>:
>
><CFMAIL TO="#email#" FROM="[EMAIL PROTECTED]" SERVER="mail.domain.com"
>SUBJECT="Welcome!">
>Text of Email.
></CFMAIL>
>
>I get the following error: Any suggestions? I know the variable is being
>passed, as I tested it with a simple <CFOUTPUT> statement. Thanks for the
>help, --James
>
>Bonus Question: Is there a better (or another) way to pass the data from one
>page to the next? 
>
>Error Diagnostic Information
>TO 
>The attribute value is an invalid expression: An error has occurred while
>processing the expression: #email# 
>Error near line 1, column 3. 
>Error resolving parameter EMAIL 
>ColdFusion was unable to determine the value of the parameter. This problem
>is very likely due to the fact that either: 
>       You have misspelled the parameter name, or 
>       You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or
>CFTABLE tag.
>The error occurred while processing an element with a general identifier of
>(CFMAIL),
------------------------------------------------------------------------------
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.

Reply via email to