Re: dynamic list of form variables

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50279
interpreted = N
texte = Obviously there is more than one way to do it, but you can use the formvariables loop to do all the work.[append db=some.db][formvariables][name]=[url][value][/url]&[/formvariables][/append ]This is a quick & dirty solution. If you want to parse out certain fields then I recommend naming all fields to be used with something unique like a --[append db=some.db][formvariables name=--&exact=F][getchars start=3][name][/getchars]=[url][value][/url]&[/formvariables][/append]this would only look at fields that begins with the --Hope this helps.----- Original Message ----- From: Dave Hurley To: WebDNA Talk Sent: Monday, May 12, 2003 9:38 AM Subject: dynamic list of form variables > Is there a way to nest variables in the name of a variable so that, if > the result is the name of a form variable, it is parsed as such? I have > a bunch of incoming form variables, field-1, field-2, field-3 etc., and > I would like to loop through them in order to update a database. When I > use [field]-[index] inside a loop context I end up with the literal > 'field-1' instead of the contents of the form variable named 'field-1'. > > If this makes sense and someone has a solution (arrays?) I'd love to > hear about it. > > Thanks. And thank you to everyone who answered my last question > regarding the updating of database files outside of an admin page - it > makes sense now. > > Dave Hurley > Biology Department > University of Washington > > > ------------------------------------------------------------- > 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://webdna.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: dynamic list of form variables (Dave Hurley 2003)
  2. Re: dynamic list of form variables (Brian Fries 2003)
  3. Re: dynamic list of form variables (Donovan 2003)
  4. Re: dynamic list of form variables (WebCat @ Inkblot Media 2003)
  5. Re: dynamic list of form variables (Laurent Bache 2003)
  6. dynamic list of form variables (Dave Hurley 2003)
Obviously there is more than one way to do it, but you can use the formvariables loop to do all the work.[append db=some.db][formvariables][name]=[url][value][/url]&[/formvariables][/append ]This is a quick & dirty solution. If you want to parse out certain fields then I recommend naming all fields to be used with something unique like a --[append db=some.db][formvariables name=--&exact=F][getchars start=3][name][/getchars]=[url][value][/url]&[/formvariables][/append]this would only look at fields that begins with the --Hope this helps.----- Original Message ----- From: Dave Hurley To: WebDNA Talk Sent: Monday, May 12, 2003 9:38 AM Subject: dynamic list of form variables > Is there a way to nest variables in the name of a variable so that, if > the result is the name of a form variable, it is parsed as such? I have > a bunch of incoming form variables, field-1, field-2, field-3 etc., and > I would like to loop through them in order to update a database. When I > use [field]-[index] inside a loop context I end up with the literal > 'field-1' instead of the contents of the form variable named 'field-1'. > > If this makes sense and someone has a solution (arrays?) I'd love to > hear about it. > > Thanks. And thank you to everyone who answered my last question > regarding the updating of database files outside of an admin page - it > makes sense now. > > Dave Hurley > Biology Department > University of Washington > > > ------------------------------------------------------------- > 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://webdna.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://webdna.smithmicro.com/ WebCat @ Inkblot Media

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:

Credit Card not accepted (1998) The IBC root beer has arrived! (1997) 2.0 Info (1997) typhoon... (1997) Webcatalog and foreign languages (1998) [format 40s]text[/format] doesn't work (1997) question: back button prevention (1997) [INCLUDE] Limitations (1998) FW: I'll Know If You Don't Read This (2006) Editing the search string (1997) Cookies (1999) showif field is number (1997) [WebDNA] location line item change password (2011) WC Host List (2000) There is a bug in 3.0.1 mac plug-in (1998) emailer truncates last letter! (1997) 2.0 Info (1997) [WebDNA] Version control (git or subversion) workflow for WebDNA (2012) WebCat2 several catalogs? (1997) possible, WebCat2.0 and checkboxes-restated (1997)