How do I get user id from radio button name in an array. The value is a variable. So this section repeats in an array and when submitting the ID and value is passed for each user in the array.
For example [26]=> t[35]=>p is passed when submitting.
How do I get the ID value in $_POST?
Code:
echo "<tr>"; echo "<td>$userlast $userfirst</td>"; echo "<td><input type='radio' name='$userID' value='t' /></td>"; echo "<td><input type='radio' name='$userID' value='u' /></td>"; echo "<td><input type='radio' name='$userID' value='e' /></td>"; echo "<td><input type='radio' name='$userID' value='p' checked /></td>"; echo "</tr>";
How do I get the ID value in $_POST?
Comment