[thelist] output value
Morgan Kelsey
morgan at morgankelsey.com
Thu Jan 23 09:54:01 CST 2003
> From: "Stevenson Ngila" <Stevenson at epr.footman-walker.com>
> >How can i get the value of the field using FORM.field i.e #FORM.field# is
> >giving me an error.
>
> Try: #Evaluate("FORM." & field)#
>
> Scott Brady
er, no, that's wrong.
you should hardly ever need to use Evaluate. its a performance dog, makes your
code unreadable, and is usually uneccessary.
back to the original....for starters, you've got some extra stuff there you don't
need.
you can skip the iDocNo statements...
<cfloop index="iCount" from="1" to="2">
<cfset field = 'doc_' & iCount>
</cfloop>
( i assume that loop is inside a form)
now to dump them on the receiving page:
<cfoutput>
<cfloop index="iCount" from="1" to="2">
#form['doc_' & iCount]#
</cfloop>
</cfoutput>
nagrom
http://morgankelsey.com
More information about the thelist
mailing list