是否有一个最大大小的HTML的隐藏输入的长度? [英] is there a max size to the length of a hidden input in html?

查看:92
本文介绍了是否有一个最大大小的HTML的隐藏输入的长度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

换句话说:

 < input type =hiddenvalue =我可以尽可能多地放置我想要的在这里,还是有一个限制? /> 

如果是这样,那是什么?

解决方案

它取决于您发送表单的方法。



使用GET时, 1-2千字节,取决于浏览器和服务器的限制。



使用POST,浏览器没有技术限制,但通常在服务器端有一个限制 - 例如Apache的 LimitRequestBody ,PHP的 post_max_size 等等。


in other words:

<input type="hidden" value="Can I put as much as I want in here, or is there a limit?" />

and if so, what is it?

解决方案

It depends on the method you send the form with.

With GET, there is a commonly agreed on limit of about 1-2 kilobytes, depending on browser and server limitations.

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屋!

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