Thanks Charlie. I'm new to this LOOP stuff. I tried it this way but it doesn't increment correctly (see below). Anything I missed or messed up?

<CFIF isDefined("form.more.x")>
<input type="hidden" name="n" value="0">
<CFSET N = #N# + 1>
<cfloop index="record" from="1" to="#n#" step="1">
<form action="" method="POST">...

-----Original Message-----
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Friday, May 14, 2004 12:06 PM
To: CF-Talk
Subject: Re: CF Isdefined on form click

looks like what you need to do is pass a hidden form field that defaults to
0.  each time you do your <CFIF isDefined("form.more.x")>, increment that
value by 1, and then do an index loop over it outputting 'n' number of new
rows (so to answer your original question...yes, you need to add a counter
of some sort) :)

Charlie

<http://www.houseoffusion.com/banners/view.cfm?bannerid=34>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to