I have a checkbox that if checked stores the value "testing" to the field "checkbox" om my database.
<input type="checkbox" name="checkbox" value="testing">
I would like to store two values, on two fields on my database, from one checkbox.
If checked:
store value testing to the checkbox field
store value testing2 to the checkbox2 field
Is this possible?
Thanks in advance
<input type="checkbox" name="checkbox" <?php if($val=="testing"): echo "value='testing' echo checked='on'" ?>">
<input type="checkbox2" name="checkbox2" <?php if($val=="testing2"): echo "value='testing2' echo checked='on'" ?>">
Hope this is what you are looking for..