Okay I am looking for some advice on how to do a loop over a form. Basically i
have a table that list testimonials. for each testimonial record there is a
rank so the user can order the testimonials in the order thy want, so the value
of the rank is displayed in an input text box so they can change the value of
any of the ranks. I have encapuslated the whole table in a FORM. I want the
user to be able to change one or all of the rankingings, select the submit
button and on the action page I want to update each testimonial record's
ranking number.
Any ideas? I know how to get the infor to the action page but I am not sure how
to loop through and update.
Example
form.cfm
<form>
<cfoutput query=gettests>
<tr><td><input type=hidden name=id value=#id#><input type=text name=rank value
=#rank#></td><tr>
</cfoutput>
<tr><td><input type=submit value=submit</td><tr>
</form>
action.cfm
?????
<CFLOOP INDEX="id" LIST="id">
<CFOUTPUT>#form.id#-#form.rank#</CFOUTPUT><BR>
</CFLOOP>
????????
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208896
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54