i try to get an array of value from checkbox like this :
if ($valueCommande['COMMANDE']["VALUE_CHECKBOX"] == "true")
{
echo "<input class='send_checkbox' checked name='test_send_checkbox[]' value='true' type='checkbox'>";
}
else
{
echo "<input class='send_checkbox' name='test_send_checkbox[]' value='false' type='checkbox'>";
}
but in my php i get only "true", when is "false" its null, and i don't understand why.
My php :
$value_send_checkbox = $_POST['test_send_checkbox'];
if i have 3 checkbox : true, false and true, i have only an array with true then true, how get the "false" ?
$_POST['test_send_checkbox']would not exist.