> 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&"

Evaluate("form.Field_Name#varCounter#")

So you'd have;
StrField_Name =Evaluate("form.Field_Name#varCounter#");
IntField_ID = Evaluate("form.Field_ID#varCounter#")

Update Table
Set Field_Name = '#StrField_Name#'
Where ID = #IntField_ID#

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to