Multiple products in one form
<p>I would like to add a functionality in my form, in which a user can add as many entries before hitting <code>submit button</code>, like a <code>'add to cart'</code> functionality, show the added entries in same page, in a separate <code>div</code> with <code>submit button</code> then save those multiple entry in database using that submit button(in a separate <code>div</code> that shows added entry).</p>

<p>So far my form allows only entries on per submit bases, meaning is if the user wants to add another entry, he/she has to go back to the form and add and click to submit again.</p>

<pre><code>&lt;form method="POST" name="myForm" action="saveto.php"&gt;
  &lt;label&gt; Speed Rating:&lt;/label&gt;
  &lt;select name="speed_rating" required class="form-control" id="speed_rating" &gt;&lt;/select&gt;
  &lt;div class="form-group col-sm-8"&gt;
    &lt;label&gt; Description:&lt;/label&gt;
    &lt;select name="description" required class="form-control" id="description" &gt;
   &lt;/select&gt;
  &lt;/div&gt;

  &lt;div class="form-group col-sm-4"&gt;
  &lt;label&gt; Load Index:&lt;/label&gt;
   &lt;select name="load_index" required class="form-control" id="load_index" &gt;
   &lt;/select&gt;
  &lt;/div&gt;
  &lt;div class="form-group col-sm-6"&gt;
  &lt;label&gt; Vendor:&lt;/label&gt;
   &lt;select name="vendor" required class="form-control" id="vendor" &gt;
  &lt;/select&gt;
  &lt;div class="note"&gt; Recommended Vendor : &lt;span id="recomvend"&gt; &lt;/span&gt; &lt;/div&gt;
  &lt;/div&gt;        
  &lt;div class="form-group col-sm-6"&gt;
  &lt;label&gt; Quantity:&lt;/label&gt;
  &lt;input type="text" required name="qty" class="form-control" id="qty"&gt;&lt;/div&gt;       
  &lt;div style="clear:both"&gt; &lt;/div&gt;   
   &lt;input type="submit" name="submit" class="btn btn-primary smp" value="Submit"&gt; &amp;nbsp; &amp;nbsp; 
  &lt;button id="clear"  type="button" class="btn btn-primary smp smp2" &gt; Reset &lt;/button&gt;
  &lt;/div&gt;
  &lt;input type="submit" value="submit" name="submit"&gt;
&lt;/form&gt;
</code></pre>

<p>How would you achieved this? My <code>saveto.php</code> is just a normal script that will process the submitted data to database, one entry in a per submit bases.</p>