title: how to submit a form with multiple values
body: <p>i have a form with the following</p>
  
  <p>Item name 
  Test 1<br>
  Test 2<br>
  Test 3 </p>
  
  <p>In the text field the input name of the field to handle the product name's is 'product_name';</p>
  
  <p>How would you process a array and insert the  following item names into the database simultaneously when a user hit the submit button...</p>
  
  <p>What I have tried hands on..</p>
  
  <p>FORM IN MY VIEW</p>
  
  <pre><code>{{form::open(array('url' =&gt;'batch', method=&gt;'post'))}}
      &lt;input type= "hidden" name="product_name" value="{{order-&gt;product_name}}
  {{ form::close()}}
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>public function postBatch(){
  
      $posted = Input::get();
  
      foreach($posted as $ke=&gt; $value){
          $batch = new Batch;
          $batch-&gt;product_name = $posted['product_name'];
       }
  
       $batch-&gt;save;
  
  }
  </code></pre>
  
  <p>Results I had from this code</p>
  
  <p>After I post the form only the 3rd item appears in my database ie. Only 'test 3' appears in my database was not sure all the names were posted so I set a function to count the items inserted and after that function I got to know  that it counts 3 bt I only see one name.</p>
  
  <p>What I want to know </p>
  
  <p>How can I post the form and all the products names will appear after been posted and save in the database.</p>