Re: AAAH: stupid sendmail

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39582
interpreted = N
texte = Comments inline. But first a (probably pointless) plea to not post code with embedded HTML tags unless that is vital to what you are having a problem with. All of that stuff below is just noise...Ron Ceballos wrote: > > [orderfile cart=[cart]] > > [lineitems] > > [SetLineItem > cart=[cart]&index=[lineindex]]quantity=[interpret][quantity[lineindex]][/int > erpret]&textA=[url][lookup > db=catalog.db&lookinfield=SKU&value=[url][SKU][/url]&returnfield=ProductType > ][/url][/SetLineItem] > [/lineitems] > > [lineItems] > [lineIndex] [SKU] [textA][quantity] > > [text]varSKU=[SKU][/text] > [text]vartextA=[textA][/text] > [text]varquantity=[quantity][/text] > [text]varcart=[cart][/text] > You do realize, I hope, that by placing the [sendmail] inside the [lineitem] context (and not the reverse) you are going to be sending a single e-mail for each line item. NOTE: this could be what you want but is usually not. > [showif [sendmail]=true][sendmailDon't EVER use a reserved WebDNA context/command as a form parameter.> to=ron@specsimple.com&from=visitor@aof.com&subject=renting] > I want to rent the [vartextA] with sku # [varSKU] in quantity: [varquantity] > > order number: [varcart] > > [Salutation] [FirstName] [lastname] > [Title] > [Company] > [Occupation] > [Address1] > [Address2] > [City], [State] [Zip] > [Country] > Tel: [Phone] fax: [fax] > [Email] > [Website] > [/sendmail] > [/showif] > [/lineItems] >
Unless you plan on creating HTML e-mail, all of this business inside the [sendmail] is pointless.>
>
> [/orderfile]Here is where the [orderfile context stops. If the text after this point shows anything, it means that the order file fields are not set and you only have form variables to play with. That is your real problem. Open up a sample order file and see if there is anything in the header.When you add an item to the cart, if you also include any extra fields in the command (or as part of a form submission), then the corresponding header fields will be filled in. Or, you can set the header fields yourself using [setheader]. This is commonly done by prepending an underscore on the form fields then walking through on the subsequent page and setting the header fields.HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: AAAH: stupid sendmail (Ron Ceballos 2001)
  2. Re: AAAH: stupid sendmail (John Peacock 2001)
  3. Re: AAAH: stupid sendmail (Ron Ceballos 2001)
  4. Re: AAAH: stupid sendmail (Andrew Simpson 2001)
  5. Re: AAAH: stupid sendmail (Ron Ceballos 2001)
  6. Re: AAAH: stupid sendmail (Donovan Brooke 2001)
  7. Re: AAAH: stupid sendmail (Ron Ceballos 2001)
  8. Re: AAAH: stupid sendmail (Glenn Busbin 2001)
  9. Re: AAAH: stupid sendmail (John Peacock 2001)
  10. Re: AAAH: stupid sendmail (Ron Ceballos 2001)
  11. Re: AAAH: stupid sendmail (Ron Ceballos 2001)
  12. Re: AAAH: stupid sendmail (Victor Scheunemann 2001)
  13. AAAH: stupid sendmail (Ron Ceballos 2001)
  14. Re: AAAH: stupid sendmail (Joseph D'Andrea 2001)
  15. Re: AAAH: stupid sendmail (John Peacock 2001)
Comments inline. But first a (probably pointless) plea to not post code with embedded HTML tags unless that is vital to what you are having a problem with. All of that stuff below is just noise...Ron Ceballos wrote: > > [orderfile cart=[cart]] > > [lineitems] > > [SetLineItem > cart=[cart]&index=[lineindex]]quantity=[interpret][quantity[lineindex]][/int > erpret]&textA=[url][lookup > db=catalog.db&lookinfield=SKU&value=[url][SKU][/url]&returnfield=ProductType > ][/url][/SetLineItem] > [/lineitems] > > [lineitems] > [lineIndex] [SKU] [textA][quantity] > > [text]varSKU=[SKU][/text] > [text]vartextA=[textA][/text] > [text]varquantity=[quantity][/text] > [text]varcart=[cart][/text] > You do realize, I hope, that by placing the [sendmail] inside the [lineitem] context (and not the reverse) you are going to be sending a single e-mail for each line item. NOTE: this could be what you want but is usually not. > [showif [sendmail]=true][sendmailDon't EVER use a reserved WebDNA context/command as a form parameter.> to=ron@specsimple.com&from=visitor@aof.com&subject=renting] > I want to rent the [vartextA] with sku # [varSKU] in quantity: [varquantity] > > order number: [varcart] > > [Salutation] [FirstName] [lastname] > [Title] > [Company] > [Occupation] > [Address1] > [Address2] > [City], [State] [Zip] > [Country] > Tel: [Phone] fax: [fax] > [Email] > [Website] > [/sendmail] > [/showif] > [/lineItems] >
Unless you plan on creating HTML e-mail, all of this business inside the [sendmail] is pointless.>
>
> [/orderfile]Here is where the [orderfile context stops. If the text after this point shows anything, it means that the order file fields are not set and you only have form variables to play with. That is your real problem. Open up a sample order file and see if there is anything in the header.When you add an item to the cart, if you also include any extra fields in the command (or as part of a form submission), then the corresponding header fields will be filled in. Or, you can set the header fields yourself using [setheader]. This is commonly done by prepending an underscore on the form fields then walking through on the subsequent page and setting the header fields.HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ John Peacock

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:

[convertChars] and in a textarea on a form (1998) PCS Emailer's role ? (1997) setting cookies then redirecting? (1998) BUG REPORT -- Refusing connections! (1999) 2nd WebCatalog2 Feature Request (1996) RE: ShowNext Command (1997) HideIf ip= OR ip (1998) Status? (2000) WebCat2.0b15-to many nested [xx] tags (1997) Errata: WCS Newbie question (1997) Re:Searching for ALL / empty form field (1997) back button problem (1999) Max Record length restated as maybe bug (1997) Navigator 4.01 (1997) Make sure I understand this??? (1997) Cart Creation (1998) Multi-processor Mac info ... (1997) Location of Browser Info.txt file (1997) Word Breaks (1998) RE: protect tag not working (1998)