HTML页面值如何传递? [英] how HTML Page Values are passed?

查看:64
本文介绍了HTML页面值如何传递?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HTML页面字段值如何在后端发送?它们是通过标题发送的吗?请给我发一些例子。

How does the HTML page field values are sent in backend? Are they sent via headers?Pls post me some example.

推荐答案

我试图回答你可以回顾的所有三个问题。看起来不正确或不合理。看起来你不明白你在说什么。你需要从一开始就试着去理解它。请参阅:

http://en.wikipedia.org/wiki/Http [< a href =http://en.wikipedia.org/wiki/Httptarget =_ blanktitle =New Window> ^ ],

http://en.wikipedia.org/wiki/World_Wide_Web [ ^ ]。







当您谈论提交按钮时,您可能意味着从Web表单发送HTTP请求。这是由浏览器以键值对完成的;对于键,使用控件的 name 属性值,值取决于用户输入的值或选项,由 value property(就像你使用Javascript计算值一样)。在HTTP文本中,这些对根据 Internet媒体类型进行编码,默认情况下,表单POST方法是application / x-www-form-urlencoded。



请参阅:

http ://en.wikipedia.org/wiki/POST_%28HTTP%29#Use_for_submitting_web_forms [ ^ ](参见示例),

http://en.wikipedia.org/wiki/Application/x-www-form-urlencoded [ ^ ],

http://en.wikipedia.org/wiki/Internet_media_type [ ^ ]。





-SA
I'm trying to give you some idea in response to all three of your questions I could review. The don't look correct or reasonable. It just look like you don't understand what you are talking about. You need to try to understand it all from the very beginning. Please see:
http://en.wikipedia.org/wiki/Http[^],
http://en.wikipedia.org/wiki/World_Wide_Web[^].



When you are talking about "Submit" button, you probably mean sending HTTP request from a Web form. This is done by browser in key-value pairs; for keys, the values of the name attributes of your controls are used, and values depend on the value or selection entered by the user, as calculated by the value property (as if you calculated the value using Javascript, same thing). In HTTP text, these pairs are encoded according to the Internet media type, which is, by default for the form POST method, is "application/x-www-form-urlencoded".

Please see:
http://en.wikipedia.org/wiki/POST_%28HTTP%29#Use_for_submitting_web_forms[^] (see the example),
http://en.wikipedia.org/wiki/Application/x-www-form-urlencoded[^],
http://en.wikipedia.org/wiki/Internet_media_type[^].


—SA


这篇关于HTML页面值如何传递?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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