Well, do create what you have in CF you would use Evaluate, e.g.,
myFormValue = evaluate("FORM.Field_name#counter#").
-----Original Message-----
From: Jason [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 3:02 PM
To: CF-Talk
Subject: Form Question
Maybe Im being dense today but I can do this in ASP pretty easy I just need
to know how to do it in CF.
I have a form that outputs a series of similar items that I allow the user
to change all at once with one form submit
example
<INPUT TYPE="TEXT" NAME="FIELD_NAME#COUNTER#" VALUE="#FIELD_NAME#">
<INPUT TYPE="TEXT" NAME="FIELD_ID#COUNTER#" VALUE="#ID#">
In ASP I am looping through the set like this
StrField_Name = Request.Form(Cstr("Field_name" & Varcounter))
IntField_ID = Request.Form(Cstr("Field_ID" & Varcounter))
THen I can do an update loop for however many of the same fields there are
like follows
Update Table
Set Field_Name = '"&StrField_Name&"'
Where ID = "&IntField_ID&"
So in effect getting Field_Name1 and Field_ID1, Field_Name2 and Field_ID2
Maybe Ive been switching back and forth between CF and ASP too much but I
can't recall the method to do this in CF. Must need more coffee.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists