title: Sending multiple identical forms?
body: <p>So I have been looking for the past 3 days for an indication if this can be done this way. I want to create a registration page where the user picks the number of family members and then that number of forms will be displayed for the user to fill out. This can be anywhere from 1 to 10. This part is done and I can get the following result when I print the array. My question is, can I now take that information and place it in a mysql database with a record for each person? </p>
  
  <p>I used this code to get the following array:</p>
  
  <pre><code>foreach($_POST as $key=&gt;$value)
  {
   echo "$key=$value"."&lt;br&gt;";
  }
  </code></pre>
  
  <p>// results of $key=$value</p>
  
  <pre><code>firstname0=John
  lastname0=smith
  years0=2011
  street_address0=18 Kelly Lane
  city0=test town
  phone0=000 000 0000
  email0=test@gmail.com
  registration=15.00
  pub=15.00
  golf=90.00
  basketball=NaN
  run=10.00
  hockey=10.00
  banquet=25.00
  ecumenical_service=1
  T_shirt=20.00
  Golf_shirt=
  Mug=
  Drinking_glass=
  DVD=
  Hats=
  firstname1=John
  lastname1=Smith2
  graduated1=2014
  registration1=15.00
  T_shirt1=40.00
  Golf_shirt1=
  Mug1=
  Drinking_glass1=
  DVD1=
  Hats1=
  firstname2=Jane
  lastname2=Smith3
  graduated2=1990
  registration2=15.00
  show2=15.00
  T_shirt2=
  Golf_shirt2=
  Mug2=
  Drinking_glass2=
  DVD2=
  Hats2=
  firstname3=Jane
  lastname3=Smith Jr.
  graduated3=2000
  registration3=15.00
  pub3=15.00
  T_shirt3=
  Golf_shirt3=
  Mug3=
  Drinking_glass3=
  DVD3=
  Hats3=
  </code></pre>
  
  <p>You can see that each filed name is numbered, firstname1, firstname2 and so on... So my question is can I take this array and insert it into a database or is my initial thinking of how to create multiple dynamic forms flawed? </p>