I have check box on my page which has its equivalent value. How do I insert the value inside my tables in single row for each check box using LOOP
ex.
Now I wanted to insert the value on my table structure like this
ID | NAME
--------------
1 | CAT
2 | DOG
ex.
Code:
<input type="checkbox" name="chk1" value="Y"
<?php if $value=='Karen Lincoln'){ echo "checked=\"true\""; }?>>CAT
<input type="checkbox" name="chk2" value="Y"
<?php if($value=='Karen Lincoln'){ echo "checked=\"true\""; }?>>DOG
ID | NAME
--------------
1 | CAT
2 | DOG
Comment