Here's what finally worked:

<CFIF #AdminName# EQ "1">
        <CFSET Name = "Kathi Kestler">
        <CFSET AltAdd = "[EMAIL PROTECTED]">
</CFIF>
<CFIF  #AdminName# EQ "2">
        <CFSET Name = "Fatima Jones">
        <CFSET AltAdd = "[EMAIL PROTECTED]">
</CFIF>
<CFIF  #AdminName# EQ "3">
        <CFSET Name = #OTHERNAME#>
        <CFSET AltAdd = #OTHEREMAIL#>
</CFIF>

For some reason, using CFELSEIF and/or CFELSE produced errors. It didn't
like the "#AdminName#" within the CFELSEIF tag.  Have NO idea why though.
The above is actually a little clumsy with the repeated CFIF instead of
nesting CFELSEIF and/or CFELSE, but I couldn't get that to work....

Thanks for the reply!

Les Mizzell
***********
Who needs Intel?
Athlon Inside!!!

> -----Original Message-----
> From: Brett Payne-Rhodes [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 17, 2000 8:27 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: Help with Form Processing please....
>
>
> Hi Les,
>
> If the code snippet you provide is verbatim then I think line 7 should
> either be <CFELSEIF #AdminName# IS "3"> or simply <CFELSE>, otherwise I
> don't see a problem - but that might not mean much ;)
>
> Brett
> B)
>
>
> Les Mizzell wrote:
> >
> > Need a small bit of help to get some form stuff to process correctly
> > please....
> >
> > Three Fields on the form I'm concerned with:
> >
> > "AdminName" is a drop downbox with three choices:
> >         "Kathi Smith" with a value of "1"
> >         "Fatima Jones" with a value of "2"
> >         "Other" with a value of "3"
> >
> > Below this are two text boxes to fill out if you selected "OTHER"
> >
> > "OTHERNAME"
> > "OTHEREMAIL"
> >
> > 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.
> >
> > I'm stupid.  What's wrong?
> >
> > In addition, exactly where should this chuck of code (once it's
> working) go
> > on the CF process page?  At the very top?  Inside the body tag
> right before
> > the area that needs it?
> >
> > Sorry, lowly newbie slowly learning.....
> >
> > Thanks
> >
> > Les Mizzell
> > ***********
> > Who needs Intel?
> > Athlon Inside!!!
> >
> >
> ------------------------------------------------------------------
> ------------
> > 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.
----------------------------------------------------------------------------
--
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.

------------------------------------------------------------------------------
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.

Reply via email to