我的问题是我有一组单选按钮,所有都被分组为一个'x0'.现在我如何使用foreach迭代这个radiobutton组,并查找它是否为空,并根据该值进行进一步的操作?
<tr>
<td><input type="radio" name="x0" value="0" <?=$x0?>> 0. </td>
</tr>
<tr>
<td><input type="radio" name="x0" value="1" <?=$x1?>> 1. </td>
</tr>
<tr>
<td><input type="radio" name="x0" value="2" <?=$x2?>> 2. </td>
</tr>
<tr>
<td><input type="radio" name="x0" value="3" <?=$x3?>> 3. </td>
</tr>
Run Code Online (Sandbox Code Playgroud)
提前致谢.
| 归档时间: |
|
| 查看次数: |
2085 次 |
| 最近记录: |