我正在尝试使用具有特定行 ID 的表单发送两个参数(复选框中的文本框和值)
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['id'] . "</td>";
echo "<td>" . $row['datef'] . "</td>";
echo "<td>" . $row['name'] . "</td>";
$idw=$row['id'];
}
echo "</table>";
echo " </br>";
echo "<form action=\"checked.php\" method=\"POST\" enctype=\"multipart/form- data\" >";
echo "<input type=\"text\" name=\"ids\" value=\"$idw\" ><br>";
echo "<input type=\"checkbox\" name=\"check\" value=\"0\" ><br>";
echo "<p><input name=\"submit\" type=\"submit\" value=\"submit\" /></p>";
echo "</form>";
检查.php:
$idw=$_GET['ids'];
$check=$_GET['check'];
echo $idw;
echo $check;
if ($check==1){
$sql="UPDATE image_try SET checked=1 WHERE id=$idw";
$q=mysql_query($sql);}
check.php 没有收到表单参数的问题