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:

WebCatalog for guestbook ? (1997) using showpage and showcart commands (1996) [cart] Taxrate - seriously .. (2002) Bad URL reference? (1997) tcpconnect/tcpsend frustrations (2002) eMail volume (2000) Some Advise needed (1997) CommandSecurity? (1997) Multiple catalog databases and showcart (1997) Nested tags count question (1997) can WC render sites out? (1997) Web Catalog Instability (2000) Converting native excel files (2001) Tab Charactor (1997) different show next (1997) RE: IIS4b2 and WebCatalog b19 (1997) Too Much Info (1998) WebCat2b13MacPlugin - nested [xxx] contexts (1997) Can't load tmpl files (1997) Nav. 4 probs with cart (1997)