I have a form that is submitted, it show all the comments from a table which are showing properly and able to submit good. I would like to add ( if possible ) a submit button for EVERY comment that display. In the original code below it has one submit button, so when a user click on it it will submit all comments. I would like it to be a option to have 'submit all' button and 'submit' individual comment, if this is possible?
What would be the best way to approced this?
<form method="post" action="cse_execoffice_pending.cfm" name="review_comments"> <cfoutput> <input type="hidden" name="txtApprovedBy" value="#GetCurrentUser.emp_id#"> <input type="hidden" name="txtTotalRecords" value="#Mush2.Recordcount#"> </cfoutput> <cfoutput query="Mush3"> <hr> <div class="comments_approvaldecision"> <p> <input type="hidden" name="txtResponseID#CurrentRow#" value="#response_id#"> <input type="radio" name="execoffice_status#CurrentRow#" id="approve#CurrentRow#" value="1" checked="checked"> <label for="approve#CurrentRow#">Approve</label><br> <input type="radio" name="execoffice_status#CurrentRow#" id="deny#CurrentRow#" value="2"> <label for="deny#CurrentRow#">Deny</label> </p> </div> <div class="comments_pendingapproval"> <div class="clearfloat<cfif (#commentpositive# eq '')> hideempty</cfif>"> Positive Comments:<br> <cfset reReplaceCommentpositive = reReplace(commentpositive, '<br>', '', 'ALL')> <textarea rows="3" name="txtCommentPositive#CurrentRow#">#reReplaceCommentpositive#</textarea></div> <div class="clearfloat<cfif (#commentnegative# eq '')> hideempty</cfif>"> Negative Comments:<br> <cfset reReplaceCommentnegative = reReplace(commentnegative, '<br>', '', 'ALL')> <textarea rows="3" name="txtCommentNegative#CurrentRow#">#reReplaceCommentnegative#</textarea></div> <table> <thead><tr><th>Rating</th><th>Question</th></tr></thead> <tbody> <cfloop index="i" from="1" to="5"> <cfset rating = Mush3["rating" & i][Mush3.CurrentRow]> <cfset question = Mush3["csedept_question" & i][Mush3.CurrentRow]> <tr> <td valign="top"> <cfif #rating# eq 5></cfif> ........more code ... </td> <td valign="top">#question#</td> </tr> </cfloop> </tbody> </table> </div> </cfoutput> <p><input type="submit" name="Submit" value="Submit"></p> </form>