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

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

问题描述

我有一个相当长的表格(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

问:这是 IIS 设置还是 ColdFusion 管理员设置?

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

我在发布这个问题之前做了一些研究,它与 AJAX 和调试设置无关.所有调试设置都已关闭,我收到表单提交错误.

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.

推荐答案

你的表单是 POST 还是 GET?如果是 GET,您可能会超出 URL 长度限制.如果是 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天全站免登陆