You're doing something in a somewhat complicated but powerful way: a way that takes a LOT of skill and understanding:
Suppose you create an input variable:
First Name: <input type=text name=FirstName>
once submitted the post array will have this element, which your code can access:
$_POST['FirstName']
Your UNPOSTED FORM CODE appears to be creating an ARRAY of inputs, however:
First Name: <input type=text name=myArray[]>
Last Name: <input type=text name=myArray[]>
Favorite color: <input type=text name=myArray[]>
etc.
In this instance, you have assigned the input values to a POST'ed
array.
once submitted the post array will have this array as an element, which your code can access:
$POST['myArray'][0];
$POST['myArray'][1];
$_POST['myArray'][2];
You will need to figure out the programmitic application of those posted array elements.
You will need to construct your code to be aware that
$_POST['myArray'][0] is the input meant to be used as a first name.
Hope this helps