i am trying to post a form with fields that act like a table entries
I think it would be best if i give an example:
<form method="post">
<table>
<tr>
<td><label>Name:</label></td>
<td><input type="text" name="appsDetails[name]" placeholder="Enter name" value=""/></td>
<td><label>ID:</label></td>
<td><input type="text" name="appsDetails[id]" placeholder="Enter id" value=""/></td>
<td><label>Token:</label></td>
<td><input type="text" name="appsDetails[token]" placeholder="Enter token" value=""/></td>
</tr>
<tr>
<td><label>Name:</label></td>
<td><input type="text" name="appsDetails[name]" placeholder="Enter name" value=""/></td>
<td><label>ID:</label></td>
<td><input type="text" name="appsDetails[id]" placeholder="Enter id" value=""/></td>
<td><label>Token:</label></td>
<td><input type="text" name="appsDetails[token]" placeholder="Enter token" value=""/></td>
</tr>
<tr>
<td><label>Name:</label></td>
<td><input type="text" name="appsDetails[name]" placeholder="Enter name" value=""/></td>
<td><label>ID:</label></td>
<td><input type="text" name="appsDetails[id]" placeholder="Enter id" value=""/></td>
<td><label>Token:</label></td>
<td><input type="text" name="appsDetails[token]" placeholder="Enter token" value=""/></td>
</tr>
</table>
</form>
You can also check: fiddle example
When the above example get submitted i only get the last row in the table.
My question is. is there a way to do it like array within array ? if that make sense
I am trying to avoid doing something like name[]. id[], token[].