Cold Fusion Form Submit Help
$20-25 USD
Paid on delivery
In ASP I could loop through a posted [url removed, login to view] collection and grab values for submitted form fields with the same name to perform multiple updates in one submission. I can't figure out how to do this in Colf Fusion. It should be really simple. I have a list of input text fields (dept_uid) and checkboxes (access). I want to be able to submit the form to update each dept_uid to reflect the correct access setting (1/0).
<CFIF IsDefined("[url removed, login to view]")>
<!--- Loop through all the form fields --->
<CFLOOP FROM="1" TO="#ListLen([url removed, login to view])#" INDEX="i">
<CFPARAM name="access" default="0" >
<!--Setting Department Access Settings-->
<CFQUERY NAME="upd_pageaccess" DATASOURCE="#Application.DB#">
UPDATE csi_pagesecurity_dept SET access = #form.access# WHERE uid = #form.dept_uid#)
</CFQUERY>
<!--<CFLOCATION URL="[url removed, login to view]">-->
</CFLOOP>
</CFIF>
What I end up getting returned is one string for each field, not a collection:
4,11,7,9,5,1,3,2,10,8,13,14,12,6
1,1,1,1,1,1,1,1,1,1,1,1,1,1
I attached the page.
Please help.
Jen
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
## Platform
Windows IIS, CF MX
Project ID: #2981244