I would like to write PHP code that loops through rows of a table and posts both text input and a radio selection from each row.
Example HTML
<body>
<form method="post" action="table.php">
<table>
<tr>
<td><input type="text" name="name[]"></td>
<td><input type="radio" name="radio1" value="+">+</td>
<td><input type="radio" name="radio1" value="-">-</td>
</tr>
<tr>
<td><input type="text" name="name[]"></td>
<td><input type="radio" name="radio2" value="+">+</td>
<td><input type="radio" name="radio2" value="-">-</td>
</tr>
<tr>
<td><input type="text" name="name[]"></td>
<td><input type="radio" name="radio3" value="+">+</td>
<td><input type="radio" name="radio3" value="-">-</td>
</tr>
<tr>
<td><input type="text" name="name[]"></td>
<td><input type="radio" name="radio4" value="+">+</td>
<td><input type="radio" name="radio4" value="-">-</td>
</tr>
<tr>
<td><input type="text" name="name[]"></td>
<td><input type="radio" name="radio5" value="+">+</td>
<td><input type="radio" name="radio5" value="-">-</td>
</tr>
</table>
<input type="submit" value="submit">
</form>
</body>
</html>
in the case where the number of rows may vary.