title: passing multidimensional array from form in php
body: <p>I have a bit of a headache here. My problem is as follows.
  I have three sites that I e-mail items to, all three sites have a couple of default mail addresses.
  so on my form i create inputs with the existing addresses and allow the user to create more dynamically.
  i might end up with the following</p>
  
  <pre><code>site 1 - address 1
  site 1 - address 2
  
  site 2 - address 1
  site 2 - address 2
  site 2 - address 3
  </code></pre>
  
  <p>etc</p>
  
  <p>my inputs look like <code>&lt;input type="text" name="email[]"/&gt;</code></p>
  
  <p>i need to pass the site identifier and the inputted address to my php script and loop through it to add the list to the database</p>