<cfparam name="form.counter" default="0">
<cfif isDefined('form.more.x')>
<cfset form.counter = form.counter + 1>
</cfif>
<form action="" method="post">
<input type="hidden" name="counter" value="#form.counter#">
<cfloop from="1" to="#form.counter#" index="i">
...
i think that should do it...
----- Original Message -----
From: "Robert Orlini" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, May 14, 2004 10:50 AM
Subject: RE: CF Isdefined on form click
> 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">...
485.4
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]