HTML发送x y POST数据没有输入 - 这是怎么回事? [英] HTML sends x y POST data with no inputs - how is this possible?

查看:134
本文介绍了HTML发送x y POST数据没有输入 - 这是怎么回事?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用LiveHTTPHeaders查看发送的标题。



当我通过表单登录时,会发送

  action = autorize& login = myname& pass = mypass& x = 14& y = 10 



我可以看到 action login pass < inputs>

问题是 - 没有 x y 输入。他们是随机的。我搜索所有的html,但肯定没有任何x,y或他们的数字。



这是怎么可能的?

解决方案

x和y输入来自图像输入。从W3C:


具有'TYPE = IMAGE'的INPUT元素
指定图片资源为
显示,允许输入两个形式
字段:从图像中选择的
像素的x和y坐标。字段的名称
是添加了'.x'和'.y'的
字段的名称。
'TYPE = IMAGE'隐含'TYPE = SUBMIT'
处理;也就是说,当选择一个像素
时,整个表单是


http://www.w3.org/MarkUp/html -spec / html-spec_8.html#SEC8.1.2.5


I am trying to logging using php's curl.

I am using LiveHTTPHeaders to see what headers are sent.

When I login through form it sends

action=autorize&login=myname&pass=mypass&x=14&y=10

I can see action, login, pass <inputs>.
The problem is - there are no x and y inputs. And they are random all the time. I searched all html, but there are definitely no any x, y or their numbers.

How is that possible at all?

解决方案

The x and y inputs are from an image input. From W3C:

An INPUT element with 'TYPE=IMAGE' specifies an image resource to display, and allows input of two form fields: the x and y coordinate of a pixel chosen from the image. The names of the fields are the name of the field with '.x' and '.y' appended. 'TYPE=IMAGE' implies 'TYPE=SUBMIT' processing; that is, when a pixel is chosen, the form as a whole is submitted.

http://www.w3.org/MarkUp/html-spec/html-spec_8.html#SEC8.1.2.5

这篇关于HTML发送x y POST数据没有输入 - 这是怎么回事?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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