Help with Form Processing please....

2000-06-16 Thread Les Mizzell

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.  
2.  varName EQ "Kathi Smith"
3.  varReplyto EQ "[EMAIL PROTECTED]"
4.  
5.  varName EQ "Fatima Jones"
6.  varReplyto EQ "[EMAIL PROTECTED]"
7.  
8.  varName EQ #OTHERNAME#
9.  varReplyto EQ #OTHEREMAIL#
10. 


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.



Re: Help with Form Processing please....

2000-06-17 Thread Brett Payne-Rhodes

Hi Les,

If the code snippet you provide is verbatim then I think line 7 should
either be  or simply , 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.  
> 2.  varName EQ "Kathi Smith"
> 3.  varReplyto EQ "[EMAIL PROTECTED]"
> 4.  
> 5.  varName EQ "Fatima Jones"
> 6.  varReplyto EQ "[EMAIL PROTECTED]"
> 7.  
> 8.  varName EQ #OTHERNAME#
> 9.  varReplyto EQ #OTHEREMAIL#
> 10. 
> 
> 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.



RE: Help with Form Processing please....

2000-06-17 Thread Les Mizzell

Here's what finally worked:














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  or simply , 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.  
> > 2.  varName EQ "Kathi Smith"
> > 3.  varReplyto EQ "[EMAIL PROTECTED]"
> > 4.  
> > 5.  varName EQ "Fatima Jones"
> > 6.  varReplyto EQ "[EMAIL PROTECTED]"
> > 7.  
> > 8.  varName EQ #OTHERNAME#
> > 9.  varReplyto EQ #OTHEREMAIL#
> > 10. 
> >
> > 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.



RE: Help with Form Processing please....

2000-06-17 Thread Dave Watts

> 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.  
> 2.varName EQ "Kathi Smith"
> 3.varReplyto EQ "[EMAIL PROTECTED]"
> 4.  
> 5.varName EQ "Fatima Jones"
> 6.varReplyto EQ "[EMAIL PROTECTED]"
> 7.  
> 8.varName EQ #OTHERNAME#
> 9.varReplyto EQ #OTHEREMAIL#
> 10. 
>
>
> 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:









or this:









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.