variables in [addlineitem]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17315
interpreted = N
texte = I am reading a form with POST, variable itemtoadd is defined and is shown on the page right before addlineitem: itemtoadd: [math]itemtoadd[/math]
But when I include the variable into [addlineitem], WebCat shows [itemtoadd] instead of using the value (does not find sku): [addlineitem db=luz_clients.db&cart=[cart]&sku=[itemtoadd]] quantity=[value] [/addlineitem]If I put the variable inside [math] WebCat loops indefinitely. [addlineitem db=luz_clients.db&cart=[cart]&sku=[math]itemtoadd[/math]] quantity=[value] [/addlineitem]If I write it like this: ...&[math]sku=itemtoadd[/math]... then WebCat complains: you need a sku valueHow can I use variables in [lineitems]? TIA, 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. Re: variables in [addlineitem] (PCS Technical Support 1998)
  2. Re: variables in [addlineitem] (Kenneth Grome 1998)
  3. Re: variables in [addlineitem] (Peter Ostry 1998)
  4. Re: variables in [addlineitem] (Kenneth Grome 1998)
  5. variables in [addlineitem] (Peter Ostry 1998)
I am reading a form with POST, variable itemtoadd is defined and is shown on the page right before addlineitem: itemtoadd: [math]itemtoadd[/math]
But when I include the variable into [addlineitem], WebCat shows [itemtoadd] instead of using the value (does not find sku): [addlineitem db=luz_clients.db&cart=[cart]&sku=[itemtoadd]] quantity=[value] [/addlineitem]If I put the variable inside [math] WebCat loops indefinitely. [addlineitem db=luz_clients.db&cart=[cart]&sku=[math]itemtoadd[/math]] quantity=[value] [/addlineitem]If I write it like this: ...&[math]sku=itemtoadd[/math]... then WebCat complains: you need a sku valueHow can I use variables in [lineitems]? TIA, 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:

ShipTotal Again (1998) carriage returns in data (1997) time + (1998) Date Question (2002) [showif] or-ing (1999) Web Commerce thoughts and needs.. (1996) type 2 errors with ssl server (1997) Searching for the end (1998) payflowpro broken on WebDNA 5.1? (2003) Databases (2000) Problems passing [SKU] with $Replace in 2.0 (1997) $append (1998) [WebDNA] A good PDF reference for beginners (2011) PROBLEM (1997) WebCat editing, SiteGuard & SiteEdit (1997) Using Cookie for client specific info? (1997) carriage returns in data (1997) RE: NewCart+Search with one click ? (1997) WC Database Format (1997) [WebDNA] divisible by 1 (2011)