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:

UPS Rates (2006) WebCatalog2 Feature Feedback (1996) Permissions Ignored - PLEASE HELP (2003) IIS4 & Password Authentication, request example (1998) MySQL 4.1 (2004) New public beta available (1997) Help! WebCat2 bug (1997) Re:Still More on EudoraPro Email (1998) RE: Loss in form (1998) orderfile and setlineitems (1998) .. more on sliding discounts... (1997) Problems with [Search] param - Mac Plugin b15 (1997) WebCatalog Use Question (1997) Searching multiple fields from one form field (1997) Restart of DBserver (1997) New command suggestion (was Modifying databasesmanually) (1997) Need correct syntax for writing to header2 (1999) Help with (2003) HELP WITH DATES (1997) Followup question re: checksum for credit cards? (1997)