Use this HTML code:
<tr> <td valign="top"><input id="" type="text" name="asset_id[]" size="15"/></td> <td valign="top"><input id="" type="text" name="batch_code[]" size="15"/></td> <td valign="top"><input id="" type="text" name="description[]" size="50"/></td> </tr> <tr> <td valign="top"><input id="" type="text" name="asset_id[]" size="15"/></td> <td valign="top"><input id="" type="text" name="batch_code[]" size="15"/></td> <td valign="top"><input id="" type="text" name="description[]" size="50"/></td> </tr>
Note that there is no type="textbox" ; the correct type is text .
In PHP, access the data as follows:
$_POST["asset_id"]; // this is an array of the values of the asset_id textboxes $_POST["batch_code"]; // array of batch codes $_POST["description"]; // array of descriptions
source share