Possible Duplicate:
Submit an HTML form with empty checkboxes
I'm try to submit some data to the database. I'm trying to submit the value for a checkbox in the form to the database as follow:
<input type='checkbox' name='continue' <?php if ($_POST[continue] == TRUE) echo "value='y' checked='checked'"; else echo "value='n'"; ?> />
when I submit the data when the checkbox is checked, the value will be 'y'. but when the checkbox is checked, there is no data sent to the database.
Please advise.
checkbox is checkedtwice. Only checked checkboxes are sent to the server