Re: embedding commands in form

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23554
interpreted = N
texte = >I want to embed the add command in a form. I am using the following, but >it doesn't appear to be creating a cart. Is it possible to embad a >command in a form like this? > >
action=YourSelection.tpl?command=Add&cart=[cart]&db=catalog.db&sku=[shape][gra >phic][color]&db=catalog.db&textA=skill&textB=age&textC=years&textD=height&textE= >weight>Try Add item to cartI want to clear up some terminology in your question. Technically, this form does not 'embed' the add-to-cart. Any time you have a FORM or HREF with command=xxx, we call that a URL command. The action does not occur until the visitor clicks the submit button (or hyperlink), and the URL gets sent to the web server.You can truly embed WebDNA by using the equivalent contexts, like [AddLineItem db=xx]sku=1234[/AddLineItem]. This WebDNA gets executed immediately as soon as the page is hit with a browser. But for most simple shopping cart applications, the earlier HREF with command=add is the preferred method.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: embedding commands in form (PCS Technical Support 1999)
  2. Re: embedding commands in form (John Winningham 1999)
  3. embedding commands in form (Jan Kinzler 1999)
>I want to embed the add command in a form. I am using the following, but >it doesn't appear to be creating a cart. Is it possible to embad a >command in a form like this? > >action=YourSelection.tpl?command=Add&cart=[cart]&db=catalog.db&sku=[shape][gra >phic][color]&db=catalog.db&textA=skill&textB=age&textC=years&textD=height&textE= >weight>Try [cart]&db=catalog.db&sku=[shape][graphi c][color]&db=catalog.db&textA=skill&textB=age&textC=years&textD=height&textE=wei ght>Add item to cartI want to clear up some terminology in your question. Technically, this form does not 'embed' the add-to-cart. Any time you have a FORM or HREF with command=xxx, we call that a URL command. The action does not occur until the visitor clicks the submit button (or hyperlink), and the URL gets sent to the web server.You can truly embed WebDNA by using the equivalent contexts, like [AddLineItem db=xx]sku=1234[/AddLineItem]. This WebDNA gets executed immediately as soon as the page is hit with a browser. But for most simple shopping cart applications, the earlier HREF with command=add is the preferred method.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

Bug? (1997) (OFF TOPIC) System 8.5.1 FINDER ERROR (1999) [taxrate] question (1997) [protect] on NT? (1997) Free WebDNA snippets (Extending WebCatalog) (1997) What am I missing (1997) Re:Emailer (1998) Deleting Orders (1997) Upgrading old WebCat Database Files (1997) PIXO support (1997) WebCat B13 Mac CGI -- Frames question (1997) [WebDNA] Is there a D.E. database record limit? (2014) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Smith Micro - no competition (2000) Unique SKU Numbers (2000) Secure server question (1997) Replace command help (1998) [WebDNA] Is [math] on a number with too many digits the only (2011) [OT] DOD again (2003) Date or time comparisons have bugs ... (1998)