Re: dynamic list of form variables
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 50280
interpreted = N
texte = [interpret][[field]-[index]][/interpret]might be what you are looking for??be wary of security using interpretDonovanDave Hurley wrote:> 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-- * *|\ /||/========================================\|||---------* DONOVAN D. BROOKE *----------||||Administrator of IT / Assc. Art Director|||| EPSEN HILLMER GRAPHICS |||| 2000 California St. |||| Omaha, NE 68132 ||||----------------------------------------|||| http://www.hgproforms.com/ |||| http://www.ehg.net/ |||\========================================/||/ \|* *-------------------------------------------------------------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:
[interpret][[field]-[index]][/interpret]might be what you are looking for??be wary of security using interpretDonovanDave Hurley wrote:> 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-- * *|\ /||/========================================\|||---------* DONOVAN D. BROOKE *----------||||Administrator of IT / Assc. Art Director|||| EPSEN HILLMER GRAPHICS |||| 2000 California St. |||| Omaha, NE 68132 ||||----------------------------------------|||| http://www.hgproforms.com/ |||| http://www.ehg.net/ |||\========================================/||/ \|* *-------------------------------------------------------------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/
Donovan
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:
WebCat2b15MacPlugin - showing [math] (1997)
Finding max value for a field (1997)
For Grant: Webcatalog 4.0 - When will we be able to beta (2000)
WebCatb15 Mac CGI -- [purchase] (1997)
Search Problems (2000)
Configuring E-mail (1997)
Using Cookie for client specific info? (1997)
Help HTML reader (1999)
[WebDNA] Where is Speed Test? (2009)
Progress !! WAS: Trouble with formula.db (1997)
Protect (1997)
Webten + Webcat running smooth (1998)
WebCat2b15MacPlugin - [protect] (1997)
Extended [ConvertChars] (1997)
SMSI FTP - calander system THANKS! (2002)
formula??? (2000)
OT: How to get more traffic to a site? (2005)
woops - speed results - right subject (2002)
WC2b15 File Corruption (1997)
Email notification to one of multiple vendors ? (1997)