Is it possible to pass multiple values with a checkbox submit. I need to pass the value
and the data-export
to the insert statement in php? Is it possible in PHP?
Example (HTML):
<input type="checkbox" data-export="<?= $list1['export_charges']; ?>" name="chk_export[exportinr]" value="<?= $list1['export_charges_inr']; ?>">
In PHP:
$exportinr = $_POST['chk_export']['exportinr'];