This HTML code
<input name="Html_Array[][title]">
<input name="Html_Array[][amount]">
Generate this PHP Array
[0] => Array
(
[title] => Seilpendel für Tragsysteme
)
[1] => Array
(
[amount] => 2
)...So on
What will be HTML code to Generate following PHP Array
[0] => Array
(
[title] => Seilpendel für Tragsysteme
[amount] => 1
)
[1] => Array
(
[title] => Article Tiel
[amount] => 2
)
Size of array is unknown so we can’t hard-code index to 0,1,2 etc
Keep an index every time you add a new group of form fields (uses jQuery):
You should get the right structure.
Edit if you mean PHP: