Malloy1446
asked on
Form Checkboxes Yes / No
I have a simple update form with data being stored in an MSAccess database.
The checkboxes are recording a "Yes" when the user checks the appropriate selection.
If the user unchecks one of the checkbox that was checked, a -1 gets stored in the database.
How do I get a "NO" or delete the "Yes" when the user unchecks the box.
My code for the checkbox is
The checkboxes are recording a "Yes" when the user checks the appropriate selection.
If the user unchecks one of the checkbox that was checked, a -1 gets stored in the database.
How do I get a "NO" or delete the "Yes" when the user unchecks the box.
My code for the checkbox is
<input type="checkbox" name="Dialog" value="Yes" <%If Dialog = "Yes" then response.write "checked" End If%>><font size="2">Dialog<br>
The problem with checkboxes is that if they are not checked, they are not included in the submit data. I would set the default value to '-1' and only change it if the "Dialog" value of 'Yes' is submitted.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.