Joseph Grogan
New Member
Hi all....
Just a quick question.
I have a form and inside is i have 4 checkboxes.
I have the boxes set to checked on first value. And when the form is submitted and i check what value goes into the db nothing comes up. But if i unclick one of the checkboxes i get a value of 0 for all the boxes.
Anyone know what is going on.. Here is the code for the boxes
Just a quick question.
I have a form and inside is i have 4 checkboxes.
I have the boxes set to checked on first value. And when the form is submitted and i check what value goes into the db nothing comes up. But if i unclick one of the checkboxes i get a value of 0 for all the boxes.
Anyone know what is going on.. Here is the code for the boxes
HTML:
<label>Email</label>
<input name="contactemail" value="Yes" checked="checked" type="checkbox" /><br />
<label>SMS</label>
<input name="contactsms" value="Yes" checked="checked" type="checkbox" /><br />
<label>Mail</label>
<input name="contactmail" value="Yes" checked="checked" type="checkbox" /><br />
<label>Phone</label>
<input name="contactphone" value="Yes" checked="checked" type="checkbox" />