Re: Multiple Form Fields

This WebDNA talk-list message is from

2000


It keeps the original formatting.
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): >
> > > > > > > > > >
MacAddict
MacWorld
> >
> > >[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 Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.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:

    
  1. Re: Multiple Form Fields (Rob Marquardt 2000)
  2. Re: Multiple Form Fields (Paul Fowler 2000)
  3. Multiple Form Fields (Clint Davis 2000)
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): >
> > > > > > > > > >
MacAddict
MacWorld
> >
> > >[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 Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.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

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 would I? (2000) Generating unique SKU from [cart] (1997) A Couple Photos from the SmithMicro Booth at MacWorld (2000) New Weird Behavior (bug report) (2000) [WebDNA] Calculate Cube root (2012) WebMerchant 3.0 for Mac shipping now (1998) [WebDNA] mod_WebDNA_apache2.2.so: mach-0, but wrong architecture (2010) Multiple Selections in Pull-Down Menu (2000) [protect] locks out anyone (2003) Plain Language Manual? (1998) WebCatalog 4.0.1 has been released! (2000) [shownext max=?] armed (1997) SiteGuard Admin Feature ? (1997) shipping calcs (1998) Re:FYI: Error message (1996) [Price] (1997) tpl and Explorer (1998) Search over 500 (2000) Replacing a price with text (1998) Searchable list archive (1997)