这些以看似随机的值发回的 x 和 y 值是什么? 提交表单后,我使用 print_r() 输出 _POST 数组以确保我的表单被正确提交。
Array (
[user] => Richard Testani
[pass] => sdf
[client] => Kim Ronemus Design
[api] => 3425yrt
[email] => rich@kimronemusdesign.com
[x] => 88
[y] => 34
)
我在其他形式中看到过这个,但只是忽略了它们。 现在我在 Mac 平台 10.5 上运行 PHP5
谢谢 丰富
最佳答案
如果您的 input
元素属于 type="image"
(或包含 image
的 button
元素) 然后将发送点击的坐标,请参见。 the specification .
编辑
如果您的输入元素有一个 name="something"
,则 $_POST
数组将包含键 something
、something_x
和 something_y
。
关于php - 以表单发送奇怪的 x 和 y POST 值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1797894/