您可以提交的表单字段数量是否有限制? [英] Is there a limit to the number of form fields you can submit?

查看:359
本文介绍了您可以提交的表单字段数量是否有限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个相当长的表单(1000个复选框),客户通过订购。
但是当超过一定限制(100项)时,我会收到以下错误:

I have a rather long form (1000 checkboxes) that the customer goes through to order. But I get the following error when it goes over a certain limit (100 items):


无法添加HTML标题。 ColdFusion无法将
指定的标头添加到输出流。这可能是因为您有
已在您的模板中使用了cfflush标记或缓冲输出是
已关闭

Failed to add HTML header.ColdFusion was unable to add the header you specified to the output stream. This is probably because you have already used a cfflush tag in your template or buffered output is turned off

Q:是IIS设置还是ColdFusion管理员设置?

Q: Is that an IIS setting or a ColdFusion administrator setting?

我在发布这个问题之前做了一些研究,它不需要使用AJAX和debug设置。所有调试设置都已关闭,我在表单提交时收到错误。

I did some research before posting this question, and it doesn't have to do with AJAX and debug settings. All debug settings are turned off and I get the error on form submit.

推荐答案

如果是GET,您可能会超出网址长度限制。如果它是一个POST,那么你可能正在运行到CF的限制在表单字段的数量。 本文详细说明如何修改值。

Does your form POST or GET? If it's a GET you may be maxing out the URL length limit. If it's a POST, then you are probably running into the limit in CF on the number of form fields. This article details how to modify the value.

您可能需要考虑将该数据发送到服务器的其他方法。也许使用jQuery来序列化表单并将JSON作为单个参数发送?

You may want to consider other ways of sending that data to the server. Perhaps using jQuery to serialise the form and send the JSON as a single parameter?

这篇关于您可以提交的表单字段数量是否有限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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