奇怪的x& y POST值以表格形式发送 [英] Strange x & y POST values being sent in form

查看:76
本文介绍了奇怪的x& y POST值以表格形式发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些x&是什么? y返回的值似乎是随机值? 提交表单后,我使用print_r()输出_POST数组,以确保正确提交了表单.

What are these x & y values that are being sent back with seemingly random values? After submitting my form, I output the _POST array using print_r() to make sure my form is being submitted properly.

Array ( 
[user] => Richard Testani 
[pass] => sdf 
[client] => Kim Ronemus Design 
[api] => 3425yrt 
[email] => rich@kimronemusdesign.com 
[x] => 88 
[y] => 34 

)

我以其他形式看到了这一点,但只是忽略了它们. 现在,Im在运行PHP5的Mac平台10.5上

I've seen this in other forms, but just ignored them. Right now Im on a Mac platform 10.5, running PHP5

谢谢 丰富

推荐答案

如果您的input元素属于type="image"(或包含imagebutton元素),则将发送点击坐标,请参阅. 规范.

If your input element is of type="image" (or a button element containing an image) then the coordinates of the click will be sent, cf. the specification.

编辑 如果您的输入元素具有name="something",则$_POST数组将包含键somethingsomething_xsomething_y.

EDIT If your input element had a name="something" the $_POST array would contain the keys something, something_x, and something_y.

这篇关于奇怪的x& y POST值以表格形式发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆