I cant take this throw $_POST, because it’s different forms!
With your code as written in the question, the checkboxes are not inside any form and you have only one form.
Put the table inside that form.
6
solved How to get value from checked checkbox, which are in a table