Re: Multiple Form Fields

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33607
interpreted = N
texte = The only problem that I can see is if a check box is left empty then it sends nothing at all therefore your checkbox names as variables will show literal variable names rather than evaluated variables with a blank value. instead of: [showif [_macaddict]!]you will need something like: [showif [url][raw][_macaddict][/raw][/url]=[url][_macaddict][/url]]The extra urling is just a good practice to get into just in case your variable contains any harmful characters.Best of luck, Paul Fowler > From: Clint Davis > Reply-To: (WebCatalog Talk) > Date: Fri, 23 Jun 2000 12:58:28 > To: (WebCatalog Talk) > Subject: Multiple Form Fields > > This may be a silly question BUT... > > 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] > > > > _______________________ > > Clint Davis > Gray Loon Marketing Group > 812.422.9999 > > cdavis@grayloon.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: Multiple Form Fields (Rob Marquardt 2000)
  2. Re: Multiple Form Fields (Paul Fowler 2000)
  3. Multiple Form Fields (Clint Davis 2000)
The only problem that I can see is if a check box is left empty then it sends nothing at all therefore your checkbox names as variables will show literal variable names rather than evaluated variables with a blank value. instead of: [showif [_macaddict]!]you will need something like: [showif [url][raw][_macaddict][/raw][/url]=[url][_macaddict][/url]]The extra urling is just a good practice to get into just in case your variable contains any harmful characters.Best of luck, Paul Fowler > From: Clint Davis > Reply-To: (WebCatalog Talk) > Date: Fri, 23 Jun 2000 12:58:28 > To: (WebCatalog Talk) > Subject: Multiple Form Fields > > This may be a silly question BUT... > > 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] > > > > _______________________ > > Clint Davis > Gray Loon Marketing Group > 812.422.9999 > > cdavis@grayloon.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/ Paul Fowler

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:

webcat nt (1997) Unexpected comparison behavior change in 4.5.1 (2003) Trouble Searching (1999) sort (2000) Problems with [Search] param - Mac Plugin b15 (1997) Help! WebCat2 bug (1997) Random question (1998) WebCatalog seems to choke on large (2meg) html files. (1998) form data submission gets truncated (1997) Pithy questions on webcommerce & siteedit (1997) Database Structure? (1998) SKU lookup (1997) RE: File Uploads (1998) math on date? (1997) removing commas from a preformatted number (2000) ShowNext - This is Killing me! (1998) [UPPERCASE] (1997) db error (2003) Permissions (2000) Using WC for Bulk Emailings (1997)