title: codeigniter multiple field submit with a single form and button
body: <p>i have multiple form which will be generated 4 times with the same field with a loop. and i am confused how to submit these fields in same database table with loop.
  my form looks like this:</p>
  
  <pre><code>&lt;form action="http://localhost/pages/edit" method="post" name="form"&gt;
  &lt;p&gt;&lt;label for='short'&gt;Name&lt;/label&gt;&lt;br/&gt;&lt;input type="text" name="title[]" value=""  /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;label for='short'&gt;Url&lt;/label&gt;&lt;br/&gt;&lt;input type="text" name="url[]" value="ddd-df-adsfasd--asdf"  /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;label for='short'&gt;Short Description&lt;/label&gt;&lt;br/&gt;&lt;textarea name="shortdesc[]" cols="90" rows="12" id="short" size="40" &gt;&lt;/textarea&gt;&lt;/p&gt;
      &lt;p&gt;&lt;label for='long'&gt;Long Description&lt;/label&gt;&lt;br/&gt;&lt;textarea name="longdesc[]" cols="40" rows="5" id="long" &gt;&lt;/textarea&gt;&lt;/p&gt; 
          &lt;input type="hidden" name="category_id[]" value="124" /&gt;
  &lt;input type="submit" name="submit" value="Update"  /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>this form contents will be generated 4 times. and i am confused how to take these values to controller and add it to database.</p>