Thanks much!
Jason's code works as is, and it also works as follows:
<cfloop from="1" to="10" index="output" step="1">
<tr>
<td>#Evaluate("form.prodnum#output#")#</td>
<td>#Evaluate("form.lot#output#")#</td>
</tr>
</cfloop>
-----Original Message-----
From: Jason Nokes [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 2:24 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [KCFusion] looping over form fields
This should work:
<cfloop from="1" to="10" index="output" step="1">
<CFSET locProdNum="form.prodnum#output#">
<CFSET locLot="form.lot#output#">
<tr>
<td>#Evaluate(locProdNum)#</td>
<td>#Evaluate(locLot)#</td>
</tr>
</cfloop>
-----Original Message-----
From: Sheeran, Jean [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 2:18 PM
To: '[EMAIL PROTECTED]'
Subject: [KCFusion] looping over form fields
I have done this before, so I don't know what my hang-up is here. The
following code (successfully) loops through and makes an inventory request
form with 10 lines. First line
<cfloop from="1" to="10" index="linenumber" step="1">
<cfoutput>
<tr>
<td><input type="text" name="prodnum#linenumber#"></td>
<td><input type="text" name="lot#linenumber#"</td>
</tr>
</cfoutput>
</cfloop>
Using #form.fieldnames# does show me that the field names were sent over
correctly. I need to output the results. The following is the code that
does not work.
<cfloop from="1" to="10" index="output" step="1">
<tr>
<td>#form.prodnum#output#</td>
<td>#form.lot#output##</td>
</tr>
</cfloop>
Thanks in advance!
-Jean Sheeran
______________________________________________________________________
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives........ http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe.................... mailto:[EMAIL PROTECTED]
To Unsubscribe................ mailto:[EMAIL PROTECTED]
______________________________________________________________________
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives........ http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe.................... mailto:[EMAIL PROTECTED]
To Unsubscribe................ mailto:[EMAIL PROTECTED]
______________________________________________________________________
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives........ http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe.................... mailto:[EMAIL PROTECTED]
To Unsubscribe................ mailto:[EMAIL PROTECTED]