I have a html form multiple data with same name. like 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="textbox" name="asset_id" size="15"/></td>
<td valign="top"><input id="" type="textbox" name="batch_code" size="15"/></td>
<td valign="top"><input id="" type="textbox" name="description" size="50"/></td>
</tr>
how to send this in php $_POST[] to back-end process. please help me..
Use this HTML:
Note that there’s no
type="textbox"; the correcttypeistext.In PHP, access the data like this: