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:

ShowNext (1997) A question on sub-categories (1997) HELP WITH DATES (1997) AppleScript Error (2001) Physical Proximity searches (2000) WC2.0 Memory Requirements (1997) PCS Frames (1997) [append] problems (2003) Search context not finding recent entries (1998) WebCatalog NT (1996) Running 2 two WebCatalog.acgi's (1996) New Web Site Developers Database (1996) WebDNA 6 (2004) retail and wholesale... (2000) UPDATE PROBLEM (1997) mac hack (1997) Trigger Happy (2005) authenticating a second user (1997) Include a big block of text (1997) Setting up WebCatalog with Retail Pro data (1996)