Re: form variables
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 33800
interpreted = N
texte = Art, understand that [formvariables] does *not* ever add anything to the cart file.You use [addlineitem] or the Add command to do that. Code nested within a [formvariables] context will execute as many times as there areunique formvariables that have come into the page via the URL (...&someVar=xxx) orvia a form that has been submitted (get or post method) - and the resulting HTML ofall those loops thru [formvariables] will be returned to the browser. So you could use[addlineitem] *within* [formvariables] if you want the [addlineitem] to happen asmany times as there are formvariables. Each loop thru the innards of the[formvariables] context will have available the name and value of the formvariable'responsible for that current loop'.SM has made popular (via storebuilder code) the technique of using [formvariables] inconjunction with other contexts to do more than simply list the names and values of theformvariables coming into the page (which is the most basic use of the [formvariables]context).How'd I do?:-)-JohnArturo Vargas wrote:> can I use it to add more than one item to the shopping cart at the same time> then?>> Art.>> -----Original Message-----> From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On> Behalf Of Kenneth Grome> Sent: Tuesday, June 27, 2000 5:02 PM> To: WebCatalog Talk> Subject: Re: form variables>> >I have been trying to understand what [FormVariables] does and even though> >I have read the example over and over I can' seem to understand.> >Can some one put if in better words than the web cat page?>> It lists the formvariables that have been passed to the current page> from the previous page.>> ================================> Kenneth Grome, WebDNA Consultant> 808-737-6499 http://webdna.net> ================================>> -------------------------------------------------------------> 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://search.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://search.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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Art, understand that [formvariables] does *not* ever add anything to the cart file.You use [addlineitem] or the Add command to do that. Code nested within a [formvariables] context will execute as many times as there areunique formvariables that have come into the page via the URL (...&someVar=xxx) orvia a form that has been submitted (get or post method) - and the resulting HTML ofall those loops thru [formvariables] will be returned to the browser. So you could use[addlineitem] *within* [formvariables] if you want the [addlineitem] to happen asmany times as there are formvariables. Each loop thru the innards of the[formvariables] context will have available the name and value of the formvariable'responsible for that current loop'.SM has made popular (via storebuilder code) the technique of using [formvariables] inconjunction with other contexts to do more than simply list the names and values of theformvariables coming into the page (which is the most basic use of the [formvariables]context).How'd I do?:-)-JohnArturo Vargas wrote:> can I use it to add more than one item to the shopping cart at the same time> then?>> Art.>> -----Original Message-----> From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On> Behalf Of Kenneth Grome> Sent: Tuesday, June 27, 2000 5:02 PM> To: WebCatalog Talk> Subject: Re: form variables>> >I have been trying to understand what [formvariables] does and even though> >I have read the example over and over I can' seem to understand.> >Can some one put if in better words than the web cat page?>> It lists the formvariables that have been passed to the current page> from the previous page.>> ================================> Kenneth Grome, WebDNA Consultant> 808-737-6499 http://webdna.net> ================================>> -------------------------------------------------------------> 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://search.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://search.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://search.smithmicro.com/
John Butler
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:
[writefile] (1997)
Bug or syntax error on my part? (1997)
Re1000002: Setting up shop (1997)
Database (2002)
Truncated value after space - refresh my memory.... (1997)
Emailer Error: 158 (2003)
Newbie problem blah blah blah (1997)
format_to_days on NT (1997)
updating checkbox in a db (1998)
searchable list archive (1997)
WebCatalog for guestbook ? (1997)
Practice runs ? (1997)
WebCat 3.04-3.07 plug-in dying on server.... (2000)
WebCat2 beta FTP site (1997)
[WebDNA] Apache 2 Error Log Entry (2009)
code to phantom spacing (2001)
Re:HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997)
[format 40s]text[/format] doesn't work (1997)
[WebDNA] Integration with QuickBooks (2011)
Putting [cart] into a database (2003)