Re: Fields/Forms Processing

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19852
interpreted = N
texte = At 11:23 Uhr 09.09.1998, Scott Szretter wrote: >Just wondering, is there a way to write a script that would simply take >ALL the fields on a form, and email them? > >For example, within an email context, have a loop that loops through all >form fields and sends the name/value as is?Maybe like that? ---------- [sendmail to=bill@gates.com&from=steve@jobs.com&subject=hi!] [formvariables] [showif [name]!template] [name]: [value] [/showif] [/formvariables] [/sendmail] ---------- You have to put most of the code in one line to avoid spaces and blank lines in the mail. Anyway, it won't look very nice...I personally prefer to construct the mail body with [writefile] and [appendfile] and send it at once: [sendmail...] [include mailbody] [/sendmail] Peter__________________________________________ Peter Ostry - po@ostry.com - www.ostry.com Ostry & Partner - Ostry Internet Solutions Auhofstrasse 29 A-1130 Vienna Austria fon ++43-1-8777454 fax ++43-1-8777454-21 Associated Messages, from the most recent to the oldest:

    
  1. Fields/Forms Processing (Scott Szretter 1998)
  2. Re: Fields/Forms Processing (PCS Technical Support 1998)
  3. Re: Fields/Forms Processing (Peter Ostry 1998)
  4. Re: Fields/Forms Processing (Dave MacLeay 1998)
At 11:23 Uhr 09.09.1998, Scott Szretter wrote: >Just wondering, is there a way to write a script that would simply take >ALL the fields on a form, and email them? > >For example, within an email context, have a loop that loops through all >form fields and sends the name/value as is?Maybe like that? ---------- [sendmail to=bill@gates.com&from=steve@jobs.com&subject=hi!] [formvariables] [showif [name]!template] [name]: [value] [/showif] [/formvariables] [/sendmail] ---------- You have to put most of the code in one line to avoid spaces and blank lines in the mail. Anyway, it won't look very nice...I personally prefer to construct the mail body with [writefile] and [appendfile] and send it at once: [sendmail...] [include mailbody] [/sendmail] Peter__________________________________________ Peter Ostry - po@ostry.com - www.ostry.com Ostry & Partner - Ostry Internet Solutions Auhofstrasse 29 A-1130 Vienna Austria fon ++43-1-8777454 fax ++43-1-8777454-21 Peter Ostry

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:

question: webdelivery folder and file (1997) possible, WebCat2.0 and checkboxes-restated (1997) TcpConnect get files on ver. 5.x BUG BUG BUG (2004) [WebDNA] Good advise on [Showif] or alternative... (2012) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) WCS Newbie question (1997) list items (1998) Encrypted links ... (2000) WebCatalog Plug-in for Webstar. (1997) question: writing files textb in webmerch (1997) Claris HomePage messes up the code (1997) Country & Ship-to address & other fields ? (1997) PIXO with cometsite ... and/or other plugins (1998) New public beta available (1997) Re1000001: Setting up shop (1997) Escape the Root! (2002) SSL and reg web* (1997) Moment of Thanks (1997) RE: E-mailer error codes (1997) WC2b12: Yes, Formulas.db is for real (1997)