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:
More on the email templates (1997)
Why do extra quotation marks sometimes appear in my databases? (1998)
Java combo box with WebDNA database (2004)
Search/sort in URL Was: GuestBook example (1997)
Unusual characters in the db ... (2002)
Trouble with formula.db + more explanation (1997)
Using tags to create a file name (2000)
WebCatalog2 Feature Feedback (1996)
Logging purchases (1997)
Printing a final order (1997)
Grep help, please ... (2003)
WC2b15 - [HTMLx]...[/HTMLx] problems SOLVED! (1997)
Date search - yes or no (1997)
form data submission gets truncated (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Help name our technology! (1997)
Looking up two prices in database? (1997)
your mail (2000)
World Address Info (2003)
Add a field to the error log? (1997)