This content has been marked as final. Show 4 replies
In the action page you need to confirm that the checkbox exists. It will only exist if it has been checked.
The checkbox is checked, process here...
The checkbox is not checked.
The action page states that the checkbox is not checked regardless of the fact that it is checked. Here is the code:
<cfquery name="getdocstate" datasource="ezloanchfs" >
SELECT DocName, state, docsetid, defaultdoc from tblDocSet
where state = '#statename#'
<cfset docid ='doc' & '#getdocstate.docsetid#'>
<input type="checkbox" name="#docid#" >
#DocName# - #state#<br>
It would be a lot easier if you gave all your checkboxes the same name and different values. Then on your action page, you only have to check one variable.
You have not set a value for the checkbox.
Also ensure the form is using a method of "post"