I have the following HTML form, which is being generated dynamically from a table in a MySQL database.
You can simply create your form like this
Sample PHP
if(isset($_POST['chapters']))
{
echo "";
print_r($_POST['chapters']);
}
Sample Output
Array
(
[0] => Array
(
[id] => 1
[name] => Name1
[password] => Password1
)
[1] => Array
(
[id] => 2
[name] => name 2
[password] => password 2
)
[2] => Array
(
[id] => 2
[name] => name 3
[password] => Password
)
)