Show an item table and in this table I added a checkbox for each item and a field to pick up the quantities for each item.
I'm able to send only the checked items in the checkbox (that's what I wanted) to PHP.
But I can not do the same with the quantity, as I am sending via POST the quantity of all the items in the table, both the items that were selected and those that were not.
I want to send the quantity only of the selected items, or who knows how to continue sending it like this and then sort the array in PHP by eliminating the empty quantities.