$stmt = $db->prepare($sql);
$stmt->execute();
$i = 0;
while ($row = $stmt->fetch())
{
$id=strtoupper($row["id"]);
$nama=strtoupper($row["nama"]);
$sn=strtoupper($row["sn"]);
$kewpa=strtoupper($row["kewpa"]);?>
<form method="post" action="kewpaupdate.php"><tr>
<td><input type="text" name="id[<?php echo $i;?>]" value=<?php echo $id;?>></td>
<td></td>
<td></td>
<td><input type="text" name="kewpa[<?php echo $i;?>]" value=<?php echo $kewpa;?>></td>
<td align="center"><input type="submit" value="submit"></td>
</tr></form>
<?php ++$i;
?>
</tbody>
</table>
<?php
$w = $_POST['id'];
$r = $_POST['kewpa'];
echo $w;
echo "<br>";
echo $r;
?>
如何显示从“提交”按钮中选择的数组值。