I have an html form with a checked checkbox:
<input type=checkbox name="somebox" value="somevalue" checked />
When I get this form, uncheck the checkbox and post the form again, the checkbox is still being passed on together with submitted data. So, unchecking in does nothing finally.
Is there a way to uncheck it? Or may be there is another way to indicate that the checkbox is checked (without using “checked” keyword)?
Thanks in advance
UDP
Finally it was a bug in another place. Checkbox logics is all right. Thanks everyone.
If you have unchecked the checkbox, the “somebox” will not be passed a request parameter.
You must have made a mistake somewhere else.