> On the CF page to process this, I wish the form contents to
> have the correct "From" email address and name on it, based
> on the selection on the form. I was hoping the block of code
> below would accomplish this, but nope:
>
> 1. <CFIF #AdminName# IS "1">
> 2. varName EQ "Kathi Smith"
> 3. varReplyto EQ "[EMAIL PROTECTED]"
> 4. <CFELSEIF #AdminName# IS "2">
> 5. varName EQ "Fatima Jones"
> 6. varReplyto EQ "[EMAIL PROTECTED]"
> 7. <CFELSE #AdminName# IS "3">
> 8. varName EQ #OTHERNAME#
> 9. varReplyto EQ #OTHEREMAIL#
> 10. </CFIF>
>
>
> The error seems to be line 8 and 9. The variables "varName" and
> "varReplyto" need to come from the text input on the form if
> the "Other" selection is made from the dropdown box.
On line 7, you're using a CFELSE instead of a CFELSEIF. You use CFELSE
without a condition. So, you could either do this:
<CFIF AdminName IS 1>
<CFELSEIF AdminName IS 2>
<CFELSEIF AdminName IS 3>
</CFIF>
or this:
<CFIF AdminName IS 1>
<CFELSEIF AdminName IS 2>
<CFELSE>
</CFIF>
which would execute the block of code following the CFELSE tag if AdminName
were anything other than 1 or 2.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
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.