Hi Christian,

If you dynamically name your form fields you can so this
quite easily. Below is a very crude example.

form page
---------
<cfoutput>
<form name="myForm" action="action.cfm">
<input name="priceCount" type=hidden value="#myQuery.recordcount#">
  <cfloop query="myQuery">
    <input type="text" name="field_#currentrwo#" value="#price#">
  </cfloop>
</form>
</cfoutput>

action.cfm
-----------
<cfoutput>
<cfloop from=1 to=#form.priceCount# index="i">
#Evaluate("form.field_#i#")#<br>
</cfloop>
</cfoutput>

Regards,
Adam Chapman

Virtualtours.com.au
mailto:[EMAIL PROTECTED]
Phone: 1300 366 122
(Int: +61 3 9720 5733)
Fax: +61 3 9720 6377)


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Christian
van der Plaat
Sent: Wednesday, 8 January 2003 11:00 AM
To: CFAussie Mailing List
Subject: [cfaussie] Multiple Updates in forms


I have a client that want to be able to update the prices in a category, the
hard part is he wants all the prices listed on one page in text boxes so he
can update the 20 or so prices for that category by clicking on the  one
submit button so the form will then update the 20 database listings rather
than updating one field at a time.

How can I do this? I saw it in Coldfusionjournal.com some where but I can
not find it.


Thank you

Christian van der Plaat
Advanced Web Designs - IT3



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/


---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to