[thelist] Dw MX concensus

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


matt,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> 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):

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

</tip>

thanks,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/





More information about the thelist mailing list