Can [formvariables] do this?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35759
interpreted = N
texte = It'd sure be great if I could do:[formvariables name=var1&exact=F&name=var2&exact=T&name=var3&exact=T...] So I can do the following:[formvariables name=var1&exact=f&name=var2&exact=T&name=var3&exact=T...] [replace db=orders.db&eqordernamedata=[ordername]]var1=[value1]&var2=[value2]...[/rep lace] [/formvariables]Instead of[formvariables name=var1&exact=F] [replace db=orders.db&eqordernamedata=[ordername]]var1=[value][/replace] [/formvariables][formvariables name=var2&exact=T] [replace db=orders.db&eqordernamedata=[ordername]]var2=[value][/replace] [/formvariables][formvariables name=var3&exact=f] [replace db=orders.db&eqordernamedata=[ordername]]var3=[value][/replace] [/formvariables] -- Will Starck Product and Technical Support NovaDerm.com http://www.novaderm.com techs@novaderm.com Toll free support line: 800-378-1740> From: Peter Ostry > Reply-To: (WebCatalog Talk) > Date: Fri, 04 Aug 2000 17:18:22 > To: (WebCatalog Talk) > Subject: Re: YACBQ.....(Yet another checkbox question) > > on 04.08.2000 15:42, Will Starck at daprez@tigernet.net wrote: > >> Ummm....my question actually centered around an unchecked box not returning >> *anything* (not even its name) to the page in question. >> >> So, how can one make these comparisons work, if the variable name isn't even >> returned? > > > You still think this is a bug, right? > It is pure HTML and in ancient times it *did* make sense. You could write a > form and got a nice response on the page without any additional software. > > --- > But to your question - Method 1 > > [showif [v_box23]^v_box23] > empty! > [/showif] > > --- > > Method 2 > > [showif [clickme]=[raw][clickme][/raw]] > nobody clicked me :( > [/showif] > > --- > > Method 3 > Assuming you have 100 checkboxes, > named v_box1 to v_box100, > all deliver the value yes: > > [loop start=1&end=100] > [text]v_box[index]=no[/text] > [/loop] > > [formvariables name=v_box&exact=f] > [text][name]=[value][/text] > [/formvariables] > > ...got it? First you set all variables to no within the loop. Then some of > them might be set to yes if a user has clicked on them. If you have many > boxes and you really need values, this is the method of your choice. > > --- > > Peter > > > ------------------------------------------------------------- > 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:

    
  1. Re: Can [formvariables] do this? (Kenneth Grome 2000)
  2. Re: Can [formvariables] do this? (Joseph D'Andrea 2000)
  3. Can [formvariables] do this? (Will Starck 2000)
It'd sure be great if I could do:[formvariables name=var1&exact=F&name=var2&exact=T&name=var3&exact=T...] So I can do the following:[formvariables name=var1&exact=f&name=var2&exact=T&name=var3&exact=T...] [replace db=orders.db&eqordernamedata=[ordername]]var1=[value1]&var2=[value2]...[/rep lace] [/formvariables]Instead of[formvariables name=var1&exact=F] [replace db=orders.db&eqordernamedata=[ordername]]var1=[value][/replace] [/formvariables][formvariables name=var2&exact=T] [replace db=orders.db&eqordernamedata=[ordername]]var2=[value][/replace] [/formvariables][formvariables name=var3&exact=f] [replace db=orders.db&eqordernamedata=[ordername]]var3=[value][/replace] [/formvariables] -- Will Starck Product and Technical Support NovaDerm.com http://www.novaderm.com techs@novaderm.com Toll free support line: 800-378-1740> From: Peter Ostry > Reply-To: (WebCatalog Talk) > Date: Fri, 04 Aug 2000 17:18:22 > To: (WebCatalog Talk) > Subject: Re: YACBQ.....(Yet another checkbox question) > > on 04.08.2000 15:42, Will Starck at daprez@tigernet.net wrote: > >> Ummm....my question actually centered around an unchecked box not returning >> *anything* (not even its name) to the page in question. >> >> So, how can one make these comparisons work, if the variable name isn't even >> returned? > > > You still think this is a bug, right? > It is pure HTML and in ancient times it *did* make sense. You could write a > form and got a nice response on the page without any additional software. > > --- > But to your question - Method 1 > > [showif [v_box23]^v_box23] > empty! > [/showif] > > --- > > Method 2 > > [showif [clickme]=[raw][clickme][/raw]] > nobody clicked me :( > [/showif] > > --- > > Method 3 > Assuming you have 100 checkboxes, > named v_box1 to v_box100, > all deliver the value yes: > > [loop start=1&end=100] > [text]v_box[index]=no[/text] > [/loop] > > [formvariables name=v_box&exact=f] > [text][name]=[value][/text] > [/formvariables] > > ...got it? First you set all variables to no within the loop. Then some of > them might be set to yes if a user has clicked on them. If you have many > boxes and you really need values, this is the method of your choice. > > --- > > Peter > > > ------------------------------------------------------------- > 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/ Will Starck

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:

How to Display text in empty fields (1997) Show new (2003) Freeze (2003) Sku numbers (1997) showcart is slow (1998) Did you hear about this? (1997) Zeroing out shipping costs (2000) Maybe off topic but how to charge (1997) webcat error log (1998) Setting up WebCatalog with Retail Pro data (1996) WebCat2 beta 11 - new prefs ... (1997) WebCat editing, SiteGuard & SiteEdit (1997) strange [Shell] things / Linux (2000) Multiple Users.db Possible? (1997) How To question on setting up downloads (1997) NT Version on IIS 4.0 (1997) Re1000001: Setting up shop (1997) NetForms for email (1998) Major Security Hole (solution with Welcome) (1998) Cookie again (1999)