need help with [sendmail] and [showif]s
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 20536
interpreted = N
texte = Hi. Am having trouble getting this to work...I've set up a simple form for people to subscribe to our company newsletter(see at http://www.me2u.com/LoveLore/Newsletter/archive.tmpl ). The formgives you 3 options:1) subscribe2) unsubscribe3) get helpand asks for your email address.This info is passed to the next page (currentlyhttp://wwww.me2u.com/LoveLore/Newsletter/subscription.tmpl ), where I'musing [ShowIf] with [SendMail] in order to send an email message to thecorrect email address (subscribe, unsubscribe, or help):[showif [choose]=sub][SendMailto=LoveLetter-on@mail-list.com&from=[subscriber_address]&subject=][/SendMail][/showif][showif [choose]=unsub][SendMailto=LoveLetter@mail-list.com&from=[subscriber_address]&subject=][/SendMail][/showif][showif [shoose]=help][SendMailto=LoveLetter-help@mail-list.com&from=[subscriber_address]&subject=][/SendMail]]/showif]The emails are getting sent OK, but something is happening with themultiple [showif]s -- I think! -- to cause the rest of the page (HTML) fromshowing. Am I right about this? Thanks in advance for help with this!Daleps -- the variables passed are shown at the top of the second page usingthe following DNA:[formvariables][name] = [value]
[/formvariables]
Associated Messages, from the most recent to the oldest:
Hi. Am having trouble getting this to work...I've set up a simple form for people to subscribe to our company newsletter(see at http://www.me2u.com/LoveLore/Newsletter/archive.tmpl ). The formgives you 3 options:1) subscribe2) unsubscribe3) get helpand asks for your email address.This info is passed to the next page (currentlyhttp://wwww.me2u.com/LoveLore/Newsletter/subscription.tmpl ), where I'musing
[showif] with
[sendmail] in order to send an email message to thecorrect email address (subscribe, unsubscribe, or help):[showif [choose]=sub][SendMailto=LoveLetter-on@mail-list.com&from=[subscriber_address]&subject=][/SendMail][/showif][showif [choose]=unsub][SendMailto=LoveLetter@mail-list.com&from=[subscriber_address]&subject=][/SendMail][/showif][showif [shoose]=help][SendMailto=LoveLetter-help@mail-list.com&from=[subscriber_address]&subject=][/SendMail]]/showif]The emails are getting sent OK, but something is happening with themultiple
[showif]s -- I think! -- to cause the rest of the page (HTML) fromshowing. Am I right about this? Thanks in advance for help with this!Daleps -- the variables passed are shown at the top of the second page usingthe following DNA:
[formvariables][name] = [value]
[/formvariables]
Dale Stokdyk
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Document Contains No Data! (1997)
Serving images from databases (1998)
RE: Languages (1997)
WebDNA Trouble... (1999)
Uploading out of FMP (2001)
WebCatalog NT beta 18 problem (1997)
Umm...about those log files? (Off Topic) (1997)
color and size options / ARCHIVES (1997)
Online CC Processing (2002)
Where's Cart Created ? (1997)
set header in DB (no cart) (2003)
WebCat2: Items xx to xx shown, etc. (1997)
MacActivity and PCS (1997)
Bug or syntax error on my part? (1997)
webcatalog 2.1.3 ACGI Weirdness? (1998)
[WebDNA] Triggers not working (2014)
frames & carts (1997)
WebTen? (1997)
[OT] KeepItUp for Windows (2003)
SKU Question (1999)