Re: Add sizes from check boxes

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 41190
interpreted = N
texte = I want to add the values of the sizes to the database. So in the field, size, in the database, it will show what the user selected: ie 32,34,38.Stephen Russo Hunter Solutions P: 732-502-9940 F: 732-502-9975 E: steve@huntersolutions.com -----Original Message----- From: Brian Fries [mailto:brainscan@mac.com] Sent: Tuesday, July 02, 2002 3:16 PM To: WebCatalog Talk Subject: Re: Add sizes from check boxes 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/------------------------------------------------------------- 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)
I want to add the values of the sizes to the database. So in the field, size, in the database, it will show what the user selected: ie 32,34,38.Stephen Russo Hunter Solutions P: 732-502-9940 F: 732-502-9975 E: steve@huntersolutions.com -----Original Message----- From: Brian Fries [mailto:brainscan@mac.com] Sent: Tuesday, July 02, 2002 3:16 PM To: WebCatalog Talk Subject: Re: Add sizes from check boxes 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/------------------------------------------------------------- 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/ stephen

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:

Help with number searching (1999) Windows 2.1b2 Append Bug? (1997) Another question (1997) WebCatalog for guestbook ? (1997) PCS Frames-Default page is solution! (1997) sendmail spaces (1997) WebCat2 beta 11 - new prefs ... (1997) Off Topic: MacOS X Server on iMac (2000) Using Plug-In while running 1.6.1 (1997) How to implement 'email to a friend' feature? (2002) Permissions / Restart WebDNA? (2005) [WebDNA] Data Type Bool (2009) Why is this search finding the right thing?! (2002) Forbidden CGI Error (1997) Product Comparison (2000) service stop and restart (1997) WebCat2 Append problem (B14Macacgi) (1997) Install problem (Was Bad Install) (2003) Message Board (again:-) (2000) access denied problem (1997)