I have one form which contain product information and one field which have two(2) check box for status(want to post advertise for that particular product or not.)and i have one field which is for "add more" it will clone whole div
and also check boxes so i have more then one output but I don't have getting single value.
<div>
<label>I want to Advertise This Item</label>
<input type="checkbox" value="1" name="chkyes[]" id="chkyes[]"/>
Yes
<input type="checkbox" value="0" name="chkyes[]" id="chkyes[]"/>
No
</div>
Above code is for selecting checkbox, and below code which echo value in array but I don't get the value of checkbox.
if(count($_POST)){
$len = count($_POST['producttitle']);
for ($i=1; $i < $len; $i++){
echo $_POST['chkyes'][$i];
}
}