[thelist] Dw MX concensus

.jeff jeff at members.evolt.org
Tue May 14 02:36:00 CDT 2002


> From: Matt Liotta
> See already posted message below.

yes, i know.  i was surprised to see my message come through to thelist yet
again.  i sent the original last week some time.  i never sent another.  no
clue what happened or why.  sorry about the bother and thanks for getting
back with a tip when you did.

<tip type="ColdFusion" author=".jeff">

looping over keys in a structure within a <cfscript> block as just a for/in
loop away.

here's a simple example to output form field names and their values (yeah, i
know you could do the same thing with <cfdump> but then i wouldn't have a
simple example to illustrate my point):

  for(field IN form)
    writeOutput('<strong>' & field & ':</strong> ' & form[field] & '<br>');




jeff at members.evolt.org

More information about the thelist mailing list