dynamic list of form variables

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50277
interpreted = N
texte = 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/ 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)
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/ Dave Hurley

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:

New reserved words for [tags] (2000) unique ID (1997) Multiple Merchant Accounts? (1997) WCS Newbie question (1997) [WebDNA] Copy a whole row from a db to another db or table (2017) Ok here is a question? (1997) New NT beta available (1997) Webcatalog error, Plug-in for Webstar (1996) FWD: Autoproxy Bug with WebCatalog and FireSite (1997) Progress !! WAS: Trouble with formula.db (1997) WebCatb15 Mac CGI -- [purchase] (1997) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) [text] doesn't change [formvariables] (1999) Deleting associated records from 2 different databases (2001) [lineitems] (2000) Striping Characters (1998) no template caching (1997) Sending an email to all )or some) email addresses int he database (1999) WCf2 and nested tags (1997) international time (1997)