Html 使用Firefox/IE、Safari works发布的数据丢失

Html 使用Firefox/IE、Safari works发布的数据丢失,html,forms,post,Html,Forms,Post,我正在调试一个php脚本,并将其范围缩小到: index.php: <html> <body> <?php $id = "42"; echo "<form action=\"handle_data.php\" method=\"post\">"; echo "<input type=\"image\" src=\"my_button.png\" name=\"id\" value=\"$id\">"; echo "</form>"

我正在调试一个php脚本,并将其范围缩小到:

index.php:
<html>
<body>
<?php
$id = "42";
echo "<form action=\"handle_data.php\" method=\"post\">";
echo "<input type=\"image\" src=\"my_button.png\" name=\"id\" value=\"$id\">";
echo "</form>";
?>
</body>
</html>
但是,将Win7与IE8或Firefox 17一起使用时,发布的数据“42”会丢失=/

PHP Input:
id.x=128&id.y=96
Post variables:
Array ( [id_x] => 128 [id_y] => 96 )
为什么,为什么?

根据Firefox和IE的说法,他们遵循HTML5标准。它提供了一种CSS替代方案

输入
元素更改为:

<input type='submit' name='id' value='$id' class='mySubmit' />

请出示完整的表格代码。您的代码似乎没有显示PHP脚本接收到的所有字段。上面的代码就是完整的代码!不适用于Firefox或IE,但适用于Safari。如果我管理上面的代码工作,它可能会很好地为我的更大的实现…你点击图像提交表单吗?是的。上面描述的index.php和handle_data.php正是我在服务器上拥有的。没有更多,没有更少…尝试了一段时间,但没有成功。我通过传递带有链接的变量来解决这个问题:echo“”;然后在handle_data.php中,我使用了$\u GET[id]而不是$\u POST。和平。。。
PHP Input:
id.x=128&id.y=96
Post variables:
Array ( [id_x] => 128 [id_y] => 96 )
<input type='submit' name='id' value='$id' class='mySubmit' />
input.mySubmit {
  border: none;
  cursor: pointer;
  display: inline-block;
  text-indent: -3000px;
  background: url(my_button.png) no-repeat 50% 50%;
  width: 50px;
  height: 20px;
}