html 中隐藏输入的长度是否有最大大小? [英] is there a max size to the length of a hidden input in html?
本文介绍了html 中隐藏输入的长度是否有最大大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
换句话说:
<input type="hidden" value="Can I put as much as I want in here, or is there a limit?" />
如果是,那是什么?
推荐答案
这取决于您发送表单的方法.
It depends on the method you send the form with.
对于 GET,根据浏览器和服务器的限制,普遍同意的限制约为 1-2 KB.
With GET, there is a commonly agreed on limit of about 1-2 kilobytes, depending on browser and server limitations.
使用 POST,浏览器没有技术限制,但通常在服务器端有一个限制 - 参见例如Apache的LimitRequestBody
,PHP的post_max_size
等等.
With POST, there is no technical limit in the browser, but usually one on the server side - see e.g. Apache's LimitRequestBody
, PHP's post_max_size
and so on.
这篇关于html 中隐藏输入的长度是否有最大大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文