页面的提交有提交文字数量和文字数量的限制吗
我提交时,页面有十几个项目都是textarea,每个textarea有一百个文字的限制。
在每个textarea的文字量比较小时,能够正常提交。
但是在每个textarea的文字量到100各文字时,不能提交。
求教。
问题点数:0、回复次数:5Top
1 楼aotianlong(傲天龙=初中没毕业)回复于 2003-12-01 10:37:24 得分 0
POST方法没有限制,GET方法好象有限制Top
2 楼duhastfaust()回复于 2003-12-01 10:56:36 得分 0
application/x-www-form-urlencoded类型不能传递大量的二进制或者包含非ASCII码的文本文件,这时候应当使用multipart/form-dataTop
3 楼bzscs(沙虫 我爱小美)回复于 2003-12-01 12:23:35 得分 0
简单的说
get是将表单的内容编码后附在url后边提交,有大小限制。
post与之相反。
-
若设置成get,则当提交按钮被按下时,浏览器会立刻把表单上的信息送出去,而post,则浏览器会等候服务器来读取,基本上get方法的执行效率比较高,但是传送信息大小有限制(大约是2K左右),而post方法在传送的信息量上没有什么限制。
Top
4 楼wangym(我的)回复于 2003-12-04 11:41:47 得分 0
application/x-www-form-urlencoded类型不能传递大量的二进制或者包含非ASCII码的文本文件,这时候应当使用multipart/form-data
这两个什么意思,在哪里设置呀?Top
5 楼duhastfaust()回复于 2003-12-04 14:06:34 得分 0
method: 指定表单提交数据时,http使用的方法. 默认是get方法.
Get: 如果用get方法提交,表单数据集就会利用”?”, 加在action属性指定的URI的
后面. 且表单数据被限制在ASCII codes. 对大小有限制.
Post: 如果用post方法提交, 表单数据集被包含在表单的主体中一起被提交.
如果使用post方法,并且action是一个HTTP URI.,那么就会生成一个http”post”处
理, 和一个由enctype属性指定的类型创建的message. 无信息量限制.
2. enctype: 用来指定表单提交给server的数据的编码类型.
application/x-www-form-urlencoded (默认)
multipart/form-data
application/x-www-form-urlencoded类型不能传递大量的二进制或者包含非ASCII码的文本文件,这时候应当使用multipart/form-data. 如果要提交文件则需要把multipart/form-data.属性和<input type=”file”>相结合.
提交表单时, 浏览器这么处理:
Step one: Identify the successful controls
Step two: Build a form data set
A form data set is a sequence of control-name [p.220] /current-value [p.220] pairs
constructed from successful controls [p.245]
注解: 建立表单数据集, 按照”值—名”对从successful controls获取
Step three: Encode the form data set
The form data set is then encoded according to the content type [p.247] specified by
the enctype attribute of the FORM element.
注解: 建立好的表单数据集按照enctype属性指定的类型进行编码.
Step four: Submit the encoded form data set
Finally, the encoded data is sent to the processing agent designated by the action
attribute using the protocol specified by the method attribute.
注解:按照method指定的方法, 提交给action指定的url.
Top




