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 RussoHunter SolutionsP: 732-502-9940F: 732-502-9975E: steve@huntersolutions.com -----Original Message-----From: Brian Fries [mailto:brainscan@mac.com]Sent: Tuesday, July 02, 2002 3:16 PMTo: WebCatalog TalkSubject: Re: Add sizes from check boxesIf 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:
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 RussoHunter SolutionsP: 732-502-9940F: 732-502-9975E: steve@huntersolutions.com -----Original Message-----From: Brian Fries [mailto:brainscan@mac.com]Sent: Tuesday, July 02, 2002 3:16 PMTo: WebCatalog TalkSubject: Re: Add sizes from check boxesIf 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
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...