Skip to content Skip to sidebar Skip to footer

How To Map Dynamic Array Of Input Fields

I have a form with a set of input fields:
<

Solution 1:

Try this:

<form>
 <div class="row">
     <input type="text" name="product[]">
     <input type="text" name="qty[]"> 
 </div>
   <div class="row">
     <input type="text" name="product[]">
     <input type="text" name="qty[]"> 
 </div>
</form>

Post a Comment for "How To Map Dynamic Array Of Input Fields"