Re: Add sizes from check boxes

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 41157
interpreted = N
texte = If you put the following onto your receiving page:[formvariables][name] - [value]
[/formvariables]you will see that each checked checkbox passes its value in a separate form variable, each with the same name. Unchecked boxes pass no variable at all. Simply referring to the form variable by name will only give you the value of the first one passed in (as you have seen).The trick is to use something like this:[text]cbList=[formvariables name=cbSize][!] [/!][showif [index]>1],[/showif][value][/formvariables][/text]The variable [cbList] now contains the list of checkbox values passed in (eg. 32,34,36), which you can use as you wish.- brianAt 2:55 PM 7/2/02, stephen wrote: >This did not work. >Only the first check box's value gets entered. > >S- > > > >-----Original Message----- >From: Anup Setty [mailto:asetty@nuklias.com] >Sent: Tuesday, July 02, 2002 1:27 PM >To: WebCatalog Talk >Subject: Re: Add sizes from check boxes > > >Admin Page: > > 32 > 34 > 36 >etc... > >note, all the checkboxes are named the same, on the receiving page if all >the boxes are checked then >[cbSize] = 32,34,36 >you can add this as it is in your database. > >On the display page, when you get the information from the database >do this for the drop down... > > > > >HTH > >----- Original Message ----- >From: stephen >To: WebCatalog Talk >Sent: Tuesday, July 02, 2002 1:20 PM >Subject: Re: Add sizes from check boxes > > >Any thoughts on how. I'm really not sure how to go about it. > >S- > > > >-----Original Message----- >From: Bob Minor [mailto:bob@cybermill.com] >Sent: Monday, July 01, 2002 5:49 PM >To: WebCatalog Talk >Subject: Re: Add sizes from check boxes > > >On 7/1/02 4:44 PM, stephen wrote: > >> Is something like this possible. >> >> On the admin side to be able to add size to a drop down size field from >check >> boxes. >> >> Ex. >> >> Select Sizes: >> []32 []34 []36 []38 []40 []42 []44 >> >> If the Admin checks 32, 34 and 44 it populates the size field with these >> values so on the front end in the size drop down field it would have >choices >> 32, 34 and 44. >Yup, its a pretty standard thing to do. > >Robert Minor-- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.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: Add sizes from check boxes (stephen 2002)
  2. Re: Add sizes from check boxes (Brian Fries 2002)
  3. Re: Add sizes from check boxes (Anup Setty 2002)
  4. Re: Add sizes from check boxes (stephen 2002)
  5. Re: Add sizes from check boxes (Gary Krockover 2002)
  6. Re: Add sizes from check boxes (Anup Setty 2002)
  7. Re: Add sizes from check boxes (stephen 2002)
  8. Re: Add sizes from check boxes (Bob Minor 2002)
  9. Add sizes from check boxes (stephen 2002)
If you put the following onto your receiving page:[formvariables][name] - [value]
[/formvariables]you will see that each checked checkbox passes its value in a separate form variable, each with the same name. Unchecked boxes pass no variable at all. Simply referring to the form variable by name will only give you the value of the first one passed in (as you have seen).The trick is to use something like this:[text]cbList=[formvariables name=cbSize][!] [/!][showif [index]>1],[/showif][value][/formvariables][/text]The variable [cbList] now contains the list of checkbox values passed in (eg. 32,34,36), which you can use as you wish.- brianAt 2:55 PM 7/2/02, stephen wrote: >This did not work. >Only the first check box's value gets entered. > >S- > > > >-----Original Message----- >From: Anup Setty [mailto:asetty@nuklias.com] >Sent: Tuesday, July 02, 2002 1:27 PM >To: WebCatalog Talk >Subject: Re: Add sizes from check boxes > > >Admin Page: > > 32 > 34 > 36 >etc... > >note, all the checkboxes are named the same, on the receiving page if all >the boxes are checked then >[cbSize] = 32,34,36 >you can add this as it is in your database. > >On the display page, when you get the information from the database >do this for the drop down... > > > > >HTH > >----- Original Message ----- >From: stephen >To: WebCatalog Talk >Sent: Tuesday, July 02, 2002 1:20 PM >Subject: Re: Add sizes from check boxes > > >Any thoughts on how. I'm really not sure how to go about it. > >S- > > > >-----Original Message----- >From: Bob Minor [mailto:bob@cybermill.com] >Sent: Monday, July 01, 2002 5:49 PM >To: WebCatalog Talk >Subject: Re: Add sizes from check boxes > > >On 7/1/02 4:44 PM, stephen wrote: > >> Is something like this possible. >> >> On the admin side to be able to add size to a drop down size field from >check >> boxes. >> >> Ex. >> >> Select Sizes: >> []32 []34 []36 []38 []40 []42 []44 >> >> If the Admin checks 32, 34 and 44 it populates the size field with these >> values so on the front end in the size drop down field it would have >choices >> 32, 34 and 44. >Yup, its a pretty standard thing to do. > >Robert Minor-- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.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/ Brian Fries

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:

WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) details (2003) Authenticate (1997) WedDNA Codeless Language Module file (2004) Emailer (1997) taxTotal, grandTotal (1997) [WriteFile] problems (1997) Reverse dating (1999) Orderfile Info is Dissappearing (1998) Multiple transactions per cart (2000) [WriteFile] problems (1997) Help name our technology! (1997) Changing the value assigned to a formvariable (2000) Follow-Up to: Removing [showif] makes a big difference in speed (1997) E-Mail (1998) passing variables to .asp (2000) Document Contains No Data! (1997) Mass Mail (2000) Getting the domain of every request ... (2003) Problem with a search context (2005)