Re: Multiple Items

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55221
interpreted = N
texte = Ok... I sussed it (those pesky closing ]'s again) but I am still open to any explanations of the logic behind how it functions as I kind of hacked my way through it... on 1/7/04 5:30 PM, Alan White at alan@streethreds.com wrote: > Happy New Year Everyone... > > Now if you have all sobered up I could use your vast wealth of knowledge ;-) > > I am trying to set up something which requires me to add multiple items to a > database but I am running into difficulty with using [formvariables]. > > On a page of results I am using the following code to display the items and > allow the user to make various selections on a given product and then have > it added to a cart type db (some code removed):- > >
> > > > > [founditems] > > >
> Add This with:- >
> 300dpi
> Sample
> > [showif [index]\5][/showif] > [/founditems] > > >
> > =========== > > On the following page I am trying to use the following to add the multiple > items to my requests.db using this:- > > [showif [action]=addRequest] > [formvariables name=item&exact=f] > [math show=f]the_index=[getchars start=6][name][/getchars][/math] > [append > db=admin/requests.db]requestID=[cart]&item=[url][value][/url]&300dpi=[interp > ret][Image_[math]the_index[/math][/interpret]&Sample=[interpret][Sample_[mat > h]the_index[/math][/interpret][/append] > [/formvariables] > [/showif] > > =========== > > Now the database has the following fields :- > > requestID item 300dpi Sample > > and an example of what it should look like when populated would be this if > both an image and a sample had been requested:- > > 10734919453304908 OTH03BK*** y y > > In reality this is what I have been getting (although previous attempts > yielded some pretty nutty results):- > > 10734944403338288 AMA03MI*** yom [Sample_1 > > The first 2 fields are populating as they are supposed to but I am trying to > read only the value of "y" into the 2nd 2 fields. > > Can anybody give me a little advice on where I am going wrong with this? I > tried having a look at the tiny store example as has been suggested in the > archives but I am a little lost after several different attempts at changing > it. > > Thanks in advance... > > Alan > > > ------------------------------------------------------------- > 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://webdna.smithmicro.com/ ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Multiple Items ( Donovan Brooke 2004)
  2. Re: Multiple Items ( Alan White 2004)
  3. Multiple Items ( Alan White 2004)
  4. Re: Adding multiple items to cart with one click? (Nitai @ ComputerOil 2003)
  5. Re: Adding multiple items to cart with one click? (Rene van der Velde 2003)
  6. Re: more multiple items to shopping cart (John Peacock 2000)
  7. more multiple items to shopping cart (Arturo Vargas 2000)
  8. Re: Adding multiple items to cart with one click? (Robert McPeak 2000)
  9. Re: Adding multiple items to cart with one click? (WebDNA Support 2000)
  10. Re: Adding multiple items to cart with one click? (Dale 2000)
  11. Re: Adding multiple items to cart with one click? (Robert McPeak 2000)
  12. Re: Adding multiple items to cart with one click? (Will Starck 2000)
  13. Adding multiple items to cart with one click? (Robert McPeak 2000)
  14. Adding multiple items to Cart (John Butler 1999)
  15. MISTAKE in last post: Re: Adding multiple items to Cart (Charles Kline 1999)
  16. Re: Adding multiple items to Cart (Charles Kline 1999)
  17. Adding multiple items to Cart (James Godwin 1999)
  18. Re: Trouble with adding multiple items to cart (PCS Technical Support 1999)
  19. Trouble with adding multiple items to cart (Dennis J. Bonsall, Jr. 1999)
  20. Re: Adding Multiple Items (PCS Technical Support 1999)
  21. Re: Adding Multiple Items (PCS Technical Support 1999)
  22. Adding Multiple Items (John Benn/PetsForum Group 1999)
  23. Adding multiple items to a DB from a search. (Joshuwa Jenkins 1998)
  24. Re: Multiple Items (Martin Gertz Bech 1998)
  25. Re: Multiple Items (Kenneth Grome 1998)
  26. Re: Adding multiple items to Cart at one time, & append contextproblem (Grant Hulbert 1998)
  27. Re: Adding multiple items to Cart at one time, & append contextproblem (John Hill 1998)
  28. Adding multiple items to Cart at one time, & append context problem (Tom Leitner 1998)
  29. Re: Adding Multiple Items to Shopping Cart from a Resultspage (Kenneth Grome 1997)
  30. Re: Adding Multiple Items to Shopping Cart from a Results page (Michael Winston 1997)
  31. Adding Multiple Items to Shopping Cart from a Results page (Jim McDonald 1997)
  32. Re: Calculating Shipping charges for multiple items andqtys > 1 (Kenneth Grome 1997)
  33. Calculating Shipping charges for multiple items and qtys > 1 (updates@virtualrep.com (Updates) 1997)
Ok... I sussed it (those pesky closing ]'s again) but I am still open to any explanations of the logic behind how it functions as I kind of hacked my way through it... on 1/7/04 5:30 PM, Alan White at alan@streethreds.com wrote: > Happy New Year Everyone... > > Now if you have all sobered up I could use your vast wealth of knowledge ;-) > > I am trying to set up something which requires me to add multiple items to a > database but I am running into difficulty with using [formvariables]. > > On a page of results I am using the following code to display the items and > allow the user to make various selections on a given product and then have > it added to a cart type db (some code removed):- > >
> [cart]"> > > > > [founditems] > > >
> Add This with:- >
> 300dpi
> Sample
> > [showif [index]\5][/showif] > [/founditems] > > >
> > =========== > > On the following page I am trying to use the following to add the multiple > items to my requests.db using this:- > > [showif [action]=addRequest] > [formvariables name=item&exact=f] > [math show=f]the_index=[getchars start=6][name][/getchars][/math] > [append > db=admin/requests.db]requestID=[cart]&item=[url][value][/url]&300dpi=[interp > ret][Image_[math]the_index[/math][/interpret]&Sample=[interpret][Sample_[mat > h]the_index[/math][/interpret][/append] > [/formvariables] > [/showif] > > =========== > > Now the database has the following fields :- > > requestID item 300dpi Sample > > and an example of what it should look like when populated would be this if > both an image and a sample had been requested:- > > 10734919453304908 OTH03BK*** y y > > In reality this is what I have been getting (although previous attempts > yielded some pretty nutty results):- > > 10734944403338288 AMA03MI*** yom [Sample_1 > > The first 2 fields are populating as they are supposed to but I am trying to > read only the value of "y" into the 2nd 2 fields. > > Can anybody give me a little advice on where I am going wrong with this? I > tried having a look at the tiny store example as has been suggested in the > archives but I am a little lost after several different attempts at changing > it. > > Thanks in advance... > > Alan > > > ------------------------------------------------------------- > 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://webdna.smithmicro.com/ ------------------------------------------------------------- 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://webdna.smithmicro.com/ Alan White

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:

PCS search results page (1998) hmmm (2006) Menu Syntax on Edit/Add templates (1998) Running 2 two WebCatalog.acgi's (1996) RE: WebCat: Access denied, but why? (1997) Version f1 status (1997) CAll me Crazy (2000) shared_POP and archiving your own mailing list (2003) Resume Catalog ? (1997) WebTEN vs webSTAR (1998) Shipping costs again (1998) Bill To - Ship To Information display (1997) emailer and bad addresses (1997) Lost Field (1998) notification solutions (1997) WebCat2b12 - nesting [tags] (1997) Re:quit command on NT (1997) process SSI (1998) select multiple (1997) What about this [delete] situation? (1998)