Help with Form Processing please....
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=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
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=listsbody=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=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Help with Form Processing please....
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=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.