title: Inputing as array in textbox group
body: <p>I have created a textbox group using JavaScript i.e. on clicking Add button new set of textboxes will be added to the page.</p>
  
  <pre><code>var newTextBoxDiv = $(document.createElement('div'))
                   .attr("id", 'TextBoxDiv' + counter);
  
  newTextBoxDiv.after().html('&lt;label&gt;Track #'+ counter + ' : &lt;/label&gt;' + 
                 '&lt;input type="text" name="textbox1[]' + counter + '" value="" &gt;' + 
                 '&lt;input type="text" name="textbox2[]' + counter + '" value="" &gt;' );
  
  newTextBoxDiv.appendTo("#TextBoxesGroup");
  </code></pre>
  
  <p>DIV class for my PHP page is..</p>
  
  <pre><code>    &lt;div id='TextBoxesGroup'&gt; &lt;div id="TextBoxDiv1"&gt; &lt;label&gt;Track #1 : &lt;/label&gt;
      &lt;input name="textbox1[]" type='textbox' &gt;&lt;input name="textbox2[]" type='textbox'&gt;
      &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>Now I want to create an array so that, easily input values of this set of text boxes to database. Instead of using multidimensional array, I want to use single array so values of set of <code>textbox1#</code> stores as key for array and values of set of <code>textbox2#</code> stores as corresponding values for array.</p>