I have a form with 5 input fields. Each field has an array name, because there is possiblity of more than one record creation at once.
Example:
<input type="text" name="name[]" />
<input type="text" name="surname[]" />
<input type="text" name="address[]" />
<input type="text" name="phone[]" />
<input type="text" name="age[]" />
My question is how to manage multiple name arrays with php? I know how to do it with single array (multiple checkboxes checked case), but i got stuck here.
$all[] = $_POST["name"];
$all[] = $_POST["surname"];
$all[] = $_POST["address"];
$all[] = $_POST["phone"];
$all[] = $_POST["age"];
???
foreach {....???