The variables increment as they go thru a loop. The variable is called "qty" and as it goes thru the loop it would increment as "qty1", "qty2", etc thru a form.
Here's the code. I'm having an obvious problem with the <CFSET items.qty#countlist#=qty(#countlist#)> which I know is not the right syntax...
Any thoughts please? Thanks as always.
Robert at HWW
<CFIF isDefined("form.more.x")>
<cfset countList = countList + 1>
</cfif>
<cfloop index="record" from="1" to="#countList#" step="1">
<form action="" method="POST">
<input type="hidden" name="qty" value>
<CFOUTPUT>
<tr>
<td width="25%" bgcolor="##FFEEB3" align="center">
<input type="text" name="qty" size="4"></td>
</tr>
</CFOUTPUT>
<CFSET items=StructNew()>
<CFIF IsDefined("qty#countlist#")>
<CFSET items.qty#countlist#=qty(#countlist#)>
</cfif>
<cfoutput>
#items.qty#countlist#<br>
</cfoutput>
</CFLOOP>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

