0

Below is my html code

<tr>
<td><input type="text" name="item_name[]" id="itemName_1" class="form-control autocomplete_txt" autocomplete="off" required></td>
<td><input type="text" name="hsn[]" id="hsn_1" class="form-control autocomplete_txt" autocomplete="off" required></td>
</tr>
<tr>
<td><input type="text" name="item_name[]" class="form-control autocomplete_txt" autocomplete="off" required></td>
<td><input type="text" name="hsn[]" class="form-control autocomplete_txt" autocomplete="off" required></td>
</tr>

Below is the code from which i am trying to get value

echo '<pre>';print_r($_POST['item_name']);

But I am able to get single textbox value , not showing the both textbox value. Please help me where I am wrong Thanks in advance.

Avinash Gupta
  • 328
  • 4
  • 15

0 Answers0