Re: Looping a variable name with [index]

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24111
interpreted = N
texte = Mike-You need to enclose the variable in an [interpret] context like this:[loop start=1&end=11][showif [interpret][q[index]][/interpret]!]> Hey all, > Can't figure out why this doesn't work... > I've got a form with field names q1 through q11. On the following page I > want to verify whether one or more of the fields have been filled in with > this code: > > [math show=f]didQ=0[/math] > [loop start=1&end=11][showif [q[index]]!][math > show=f]didQ=didQ+1[/math][/showif][/loop] > -will [tigernet technologies, inc.] L_______[www.tigernet.net] L________e-commerce specialists Associated Messages, from the most recent to the oldest:

    
  1. Re: Looping a variable name with [index] (Will Starck 1999)
  2. Looping a variable name with [index] (Mike_Davis 1999)
Mike-You need to enclose the variable in an [interpret] context like this:[loop start=1&end=11][showif [interpret][q[index]][/interpret]!]> Hey all, > Can't figure out why this doesn't work... > I've got a form with field names q1 through q11. On the following page I > want to verify whether one or more of the fields have been filled in with > this code: > > [math show=f]didQ=0[/math] > [loop start=1&end=11][showif [q[index]]!][math > show=f]didQ=didQ+1[/math][/showif][/loop] > -will [tigernet technologies, inc.] L_______[www.tigernet.net] L________e-commerce specialists Will Starck

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:

Warning: 50 [MATH] Variable Limit per page (1998) TCP Connect for a newbie (2002) WebCat editing, SiteGuard & SiteEdit (1997) SetHeader not Working (2006) Bad cookie (1998) PSC recommends what date format yr 2000??? (1997) Linux problems (2000) protect tag on NT IIS (1997) Migrating to NT (1997) Emailer again & again (1997) WebCat for News Gathering (1999) [WebDNA] [OT] BBEdit Glossary (2012) listing [text] variables? (1999) Question about links (1999) Kinda [OT] Leopard & iTools (2008) Running 2 two WebCatalog.acgi's (1996) WebCat2_Mac RETURNs in .db (1997) keep W* in front applescript? (1998) WebCat2 - Getting to the browser's username/password data (1997) New Cart No. on same page (2003)