title: How do I format the data for insert_batch in Codeigniter?
body: <p>I have some problems with <code>insert_batch</code>. I have inputs like:</p>
  
  <pre><code>&lt;input type="text" name="title[]" /&gt;
  </code></pre>
  
  <p>In my controller i have:</p>
  
  <pre><code>for($i=0; $i&lt;=3; $i++)
  {
      $data[] = array(
          'field' =&gt; $this-&gt;input-&gt;post('text'),
          'filed2' =&gt; $this-&gt;input-&gt;post('user')
      );
  }
  $this-&gt;db-&gt;insert_batch('table', $data)
  </code></pre>
  
  <p>What am I doing wrong, and what's the best way to do it?</p>