[thelist] output value

.jeff jeff at members.evolt.org
Thu Jan 23 11:55:01 CST 2003


stevenson,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Stevenson Ngila
>
> I have form fields called "doc_1", "doc_2".
>
> Now i have a loop which loops from 1 to 2 setting the
> form fields i.e.
>
> 	<cfset iDocNo = 0>
> 	<cfloop index="iCount" from="1" to="2">
> 		<cfset field = 'doc_#iDocNo#'>
> 	</cfloop>
> 	<cfset iDocNo = iDocNo + 1>
>
> How can i get the value of the field using FORM.field
> i.e #FORM.field# is giving me an error.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

try either form[field] or form["doc_" & iDocNo].

.jeff

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




More information about the thelist mailing list