Submitting values with $_POST in PHP
<p>I have a form with fields that are generated dynamically via a loop.
It's a pair of fields: name/email. Loop generates two input fields for each value. There's always an email, while name sometimes can be blank.</p>

<pre><code>&lt;div&gt;
    &lt;input type="text" name="name['.$i.']" value="'.$output['0'].'"&gt;
    &lt;input type="text" name="email['.$i.']" value="'.$output['1'].'"&gt; 
&lt;/div&gt;
</code></pre>

<p>I understand that $_POST will generate an array, something like this:</p>

<pre><code>Array ( [name] =&gt; Array ( [1] =&gt; Fname Lname [2] =&gt; ) [email] =&gt; Array ( [1] =&gt; abc@email.com [2] =&gt; abc@gmail.com ) ) 
</code></pre>

<p>Once I submit this form how do I get the values into my db table? Having difficulty visualizing this loop with two fields...</p>
