I want to create a form that insert multiple entries to a table, i don't know how to pass the data to the post or make an array in order to have de data available. Everytime the user click the boton I append to the form 3 inputs that i need for that entry.
<button class="btn btn-default" onclick="addPrice()">Add</button>
<div>
<form class='form-inline range' id="range" method='post' action='/providers/range_price'></form>
</div>
Javascript:
function addPrice(){
var add = $('.range').append("<div class='row'><div class='col-md-12'><div class='form-group'><label class='linput' for='prices'> Price</label><input type='text' class='form-control' id='prices' name='prices' placeholder='Price'></div><div class='form-group'><label class='linput' for='minP'> Min</label><input type='number' class='form-control' id='minP' name='min' placeholder='Min'></div><div class='form-group'><label class='linput' for='maxP'> Max</label><input type='number' class='form-control' id='maxP' name="max" placeholder='Max'></div> </div></div><hr>");
}