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:

hiding links (1999) WebCatalog Hosting (1996) Add to Cart & List of Products (1997) Mac List Servers (was: Duplicate Hell) (1999) Fwd: more ! testing (1997) Max DB Size (2004) [Sum] function? (1997) [WebDNA] Problem to creat a cart (2011) Submitting ampersands in forms... (1998) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) WebDNA to PHP (2008) HELP WITH DATES (1997) $Quit, $CloseDatabase corrections (1997) WebCatalog and WebMerchant reviewed by InfoWorld (1997) Re:Need help... (1997) Max Record length restated as maybe bug (1997) Uh...can someone help me out with the b10? (1997) Sorting via date (2002) replace problem (1999) RE: Timer Values on [redirect] (1998)