0
I displayed a table of items and in this table I added a checkbox for each item and a field to pick the quantities of each item.
I’m managing to send to PHP only the items marked in the checkbox (that’s what I wanted).
But I can not do the same with quantity, because I am sending via POST the amount of all items in the table, both the items that were selected and those that were not.
I want to send only the amount of selected items, or who knows how to continue sending as well as this and then tidy the array there in PHP eliminating empty amounts.
could create a js function to add in a hiddden variable the id and value
– Israel Zebulon
Where is the code??
– Sam
Quickly removes null values
$arrayLimpo = array_filter($_POST['cantidad']);
– user60252