I'm not against taking good advice. If I was a little too
"harsh", I apologize... but at least I finally got a good response.
I figured out what I wanted anyway. (Sabaidee, yours was the
closest answer to what I eventually came up with. Thanks for the
effort, I appreciate it. I will definitely implement your logic
<cfif isdefined("form.item_id")> to check if the checkbox is
selected.)
What I came up with as a solution:
<!---The form page containing multiple checkboxes to be
inserted as individual records--->
<html>
<body>
<form action="form_processor.cfm" method=post>
<input type="hidden" name="CUSTOMER_ID"
value="#CUSTOMERS.CUSTOMER_ID#">
<input type="hidden" name="INSTANCE_ID"
value="#INSTANCE.INSTANCE_ID#">
<!---Checkboxes--->
<input name="ITEM_ID" type="checkbox" value="147">147
<input name="ITEM_ID" type="checkbox" value="148">148
<input name="ITEM_ID" type="checkbox" value="149">149
<input type="submit" value="Insert Multiple Records">
</form>
</body>
</html>
<!---Form processor page: "form_processor.cfm" which
executes multiple record database insertion--->
<cfloop INDEX="Checked_ITEM" LIST="#Form.ITEM_ID#">
<cfquery Name="#Check_Box_Insert#" DataSource="MyDB">
INSERT INTO MyTABLE (CUSTOMER_ID,INSTANCE_ID,ITEM_ID)
VALUES ('#Form.CUSTOMER_ID#', '#Form.INSTANCE_ID#',
'#Checked_ITEM#')
</cfquery>
</cfloop>
If all checkboxes are selected, the data inserts as:
147 , 23445 , 4
148 , 23445 , 4
149 , 23445 , 4
(I realize that there is a lot more that can be embellished
in both the form page and the processor page.)