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:
Emailproblem folder and back to sending them again (2007)
Header info in content (1998)
TPL Asks For Authentication (2004)
Problems reading files created by WC (1997)
Running _every_ page through WebCat ? (1997)
Date sorting (1997)
Database field limit? (1998)
RE: Remote administration (1998)
DataBaseHelper Flawed (1997)
WebCat2b12 - nesting [tags] (1997)
webcat2b12 CGI -- Date comparisons (1997)
WebCatalog and WebMerchant reviewed by InfoWorld (1997)
Moment of Thanks (1997)
[WebDNA] Hmmm ... (2008)
Mirroring WebCat Servers (2001)
Deleting Multiple Database Records based on Checkbox (1998)
authenticating a second user (1997)
[replace] and thread memory... (2000)
Exclamation point (1997)
MacAuthorize and WebMerchant (1997)