numero = 33615
interpreted = N
texte = On 6/23/00 12:58 pm, Clint Davis so noted...>I would like to take the input from multiple form fields on a single >page and insert them into a single field in a database.>>One example:>A form will offer check boxes that correspond to the names of several >different magazines. I would like all the information associated with >the _checked_ boxes to be inserted into a [magazines] field in my >database.>>Would something like this work (all on a single page):>>>>[showif [Display]=Thanks]>[append db=my.db&magazines=[showif >[_macaddict]!][url]macaddict,[/url][/showif][showif >[_macworld]!][url]macworld[/url][/showif]][formvariables >name=_&exact=F][getchars >start=2][name][/getchars]=[url][value][/url]&[/formvariables][/append]>[/showif]You already have the checkboxes prefixed with an underscore, why not just loop through the formvariables based upon that and make a list based upon the variable *names?*This will give you a comma separated list of all the checkboxes:[formvariables name=_&exact=F][showif [index]!1],[/showif][getchars start=2][name][/getchars][/formvariables]If you have multiple groups of checkboxes on the form, use a different prefix for their names and generate a list in the same manner for each.The form...MacWorld MacAddict MacMombo MacCheddar
604e G3 G4 The submission page...magazines: [formvariables name=_&exact=F][showif [index]!1],[/showif][getchars start=2][name][/getchars][/formvariables] processors: [formvariables name=-&exact=F][showif [index]!1],[/showif][getchars start=2][name][/getchars][/formvariables] Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.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:
On 6/23/00 12:58 pm, Clint Davis so noted...>I would like to take the input from multiple form fields on a single >page and insert them into a single field in a database.>>One example:>A form will offer check boxes that correspond to the names of several >different magazines. I would like all the information associated with >the _checked_ boxes to be inserted into a [magazines] field in my >database.>>Would something like this work (all on a single page):>>>>[showif [Display]=Thanks]>[append db=my.db&magazines=[showif >[_macaddict]!][url]macaddict,[/url][/showif][showif >[_macworld]!][url]macworld[/url][/showif]][formvariables >name=_&exact=F][getchars >start=2][name][/getchars]=[url][value][/url]&[/formvariables][/append]>[/showif]You already have the checkboxes prefixed with an underscore, why not just loop through the formvariables based upon that and make a list based upon the variable *names?*This will give you a comma separated list of all the checkboxes:[formvariables name=_&exact=F][showif [index]!1],[/showif][getchars start=2][name][/getchars][/formvariables]If you have multiple groups of checkboxes on the form, use a different prefix for their names and generate a list in the same manner for each.The form...MacWorld MacAddict MacMombo MacCheddar
604e G3 G4 The submission page...magazines: [formvariables name=_&exact=F][showif [index]!1],[/showif][getchars start=2][name][/getchars][/formvariables] processors: [formvariables name=-&exact=F][showif [index]!1],[/showif][getchars start=2][name][/getchars][/formvariables] Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.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/
Rob Marquardt
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...