I've done this before.  Here's how:

<cfloop index="i" from="1" to="6">
        <cfparam name="Qty#i#" default="">
        ...
</cfloop>

-----Original Message-----
From: Neil Robinson [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 14, 2000 10:41 AM
To: CFList
Subject: Dynamic


Sorry if this has been covered before.

I need a way of reading form fields on a dynamic basis through a loop.

Ie.  Form fields: Qty1 - Qty6, Main1 - Main6, Block1 - Block6 etc etc

Rather than having 6 almost identical blocks of code to handle each set of
fields I'd like to just run through a CFLOOP 6 times.  The fields are
created in this way on the previous template (see below) but I'm unsure of
the syntax to actually read the fields on the subsequent (if it is
possible).

<cfloop index="i" from="1" to="6">
                        <cfinput name="Qty#i#">.....etc

Any ideas?

Neil Robinson

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to