I have an index loop that loops over a text field on a form page. The
action page sets a client var for each field, this way, when the user
returns to the form, the data will always be there for them. The problem
is outputting the client var from within this loop. I know the following
code is wrong (#client.product#i##), but hopefully it will demonstrate
what I'm trying to go for here. I know that I will also need to have
some default params since they will not have been set yet. Can I set all
of the params with a loop using the listlen() function? Any help/code
would be much appreciated.

Thanks,

- Gary

<cfloop index="i" from="1" to="#listlen(product)#">
<tr>
        <td>
                #dollarformat(listgetat(ProductPrice, "#i#"))#
                <input type="text" size="2" maxlength="2"
name="product#i#" onChange="calculate(this.form);"
value="#client.product#i##>
        </td>
</tr>
</cfloop>

-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to