de [] bij flight moeten ertussen blijkbaar om de foreach te doen lukken, dit heb ik gehaald uit:
"Getting Submitted Form Values in PHP
The main purpose of above code is to take input from user and persist it in database. Hence we may want to submit the above form and fetch its values in PHP to store the data in database.
If you notice we have multiple input textboxes with the same name. So in order to get these values in PHP request parameter, we need to modify our HTML. We need to append [] at the end of name of each input boxes including select box.
Thus our textbox definition:
<input type="text" name="txt">
Will change into:
<input type="text" name="txt[]">"
Met de gewone echo krijg ik daardoor als resultaat:
c12345 - Air Charter - end user 1 - - dep1 - des1
c12345 - Air Charter - end user 1 - - dep2 - des2