Well i'm struggling a bit with a reasonably simple form submission problem and was wondering if anyone had some ideas for me.
Here's the code:
<FORM NAME="StepTwoRemove" ACTION="editproc.cfm" METHOD="POST">
<CFOUTPUT>Remove staff from #AdminDetails.AdminPositionName#</CFOUTPUT>
<INPUT TYPE="HIDDEN" NAME="StepTwo" VALUE="Yes">
<TD>Select the staff to remove:</TD>
<CFOUTPUT QUERY="AdminDetails" GROUP="AdminPositionID">
<!--- find staff details for this iteration --->
<CFQUERY NAME="GetStaffDetails" DATASOURCE="#DataSource#">
WHERE Staffing.StaffID = #AdminDetails.StaffID#
<INPUT TYPE="CHECKBOX" NAME="#StaffingInAdminID#" VALUE="Yes">
GetStaffDetails.FirstName# #GetStaffDetails.LastName# Loading <i> #AdminDetails.LoadingInPosition#</i>
<TD><INPUT TYPE="SUBMIT" VALUE="Remove Staff Member(s)"></TD>
So when this loads it loads a list like the following:
CB Firstname lastname loading: 1
CB firstname lastname loading: 1
When this submits i want to then remove the staff who have been checked, meaning the StaffingInAdminID checkboxes would be defined.
The problem i'm struggling with is as it is dynamic, i don't know how to work out how to find what was returned in the FORM structure...
as this will return
maybe this would be easier if i used:
<INPUT TYPE="CHECKBOX" NAME="Staffing#StaffingInAdminID#" VALUE="Yes">
so it would return
and then just parse off the end number?
I'm not sure, maybe im missing something blatantly obvious here but i think i am getting brain freeze :o)
Thanks for your time,