Take a look at this code, is from a form in html which has a POST method and is trying to send some info to a file named validating-cart.php
<form action="actions/validating-cart.php" method="POST" id="carrito-form"> <!--COMBO CARRITO-->
<legend class="carrito-legend">COMBO 2</legend>
<input type="hidden" name="nameCombo" id="nameCombo" value="COMBO 2">
<button class="reiniciar-btn" type="button">Borrar carrito</button>
<div class="error-msj"></div>
<ul>
<li><label><input type="checkbox" name="art0" checked="checked" disabled="disabled" value="1 Panal de huevos AAA">1 Panal de huevos AAA</label></li>
<li><label><input type="checkbox" name="art1" checked="checked" disabled="disabled" value="1 Pollo campesino">1 Pollo campesino</label></li>
<li><label><input type="checkbox" name="art2" checked="checked" disabled="disabled" value="1 Libra de queso cuajada">1 Libra de queso cuajada</label></li>
<li><label><input type="checkbox" name="art10" checked="checked" disabled="disabled" value="1 Lata de maiz tierno">1 Lata de maiz tierno</label></li>
<li><label><input type="checkbox" name="art11" checked="checked" disabled="disabled" value="1 Lata de salchicha viena">1 Lata de salchicha viena</label></li>
</ul>
<output>$65.000</output>
<input type="hidden" name="costo" id="precio" value="$65.000">
</form>
Through PHP file, I'm trying to retrieve through POST the input hidden elements as well the input check box with the value, what's weird is my PHP file is not recognizing what's in the input checkbox value, and it says an error like 'Array to string in conversion'. I don't know maybe is because this li items are created from JS with a JSON.

$_POST['art2']will give the value1 Libra de queso cuajadaso validate to see what is checked using php.