Taking user back to a page via captured url date variable
I have a page that will delete the contents of a database column. After the column is deleted, The page will take the the end user back to a page that displays a list of program attendees. I am trying to create a variable within the delete page, via a self-submitting form, to redirect the user back to the original page which has the list of members in attendance minus the deleted member. This member attendance page is dynamically created via a query wherein an entered date will show the list of attendance for the selected date. So I am thinking that I need to populate the date box of the original list by way of the self submitting form with an input box of the same name. The original attendance list from where The attendance is populated comes from a form that only has a date that is in the field. What is below shows the syntax for the delete column Page. When I do the code below it throws an error.
<!---Capture Date from the url variable---><cfquery name="capture_date" datasource="master">
SELECT meeting.meedate FROM meeting where meedate = '#URL.meeid#'
</cfquery>
<!---Delete member from meeting table ariable--->
<cfquery datasource="master">
DELETE FROM meeting
WHERE meeid=<cfqueryparam value="#URL.meeid#" cfsqltype="cf_sql_numeric">
</cfquery>
</cfif>
<!---Take user back to attendance page via captured url variable--->
<cfinput name="squweekbegin" type="hidden" value="#capture_date.meedate#" />
</cfform>
<script>
document.form.submit();
</script>
