I am working on a html form where I have a number of checkboxes, but I want to pass only the unchecked values to another form (get_value.php
).
<form action="get_value.php" method="post">
<input type='checkbox' name='products[]' value='call1'>col1<br>
<input type='checkbox' name='products[]' value='call2'>col2<br>
<input type='checkbox' name='products[]' value='call3'>col3<br>
<input type='checkbox' name='products[]' value='call4'>col4<br>
<input type='submit' value='Submit'>
</form>
Is there any way to filter $_POST['products'] to get unchecked values only?