What is the Maxmium no input tag in html form?

I can not find any information in the strict w3c html specification http://www.w3.org/TR/html4/sgml/dtd.html

+4
source share
6 answers

I do not think the maximum number of input elements in the form specified by the specification, if that is what you are asking. If you have a lot of input and want to make sure that the form works, you will have to try the clients you support. And, of course, it would be much better to redo the form, if possible.

+4
source

PHP USERS:

If you are using php to process your form, note that php has the max_input_vars parameter in the php ini file. I believe the default value is 1000.

I came across this when creating a cakephp application. To find out if this affects your post, count how many rows of data you insert into the form, and then count how many rows are actually sent back.

This way your form will be limited by the number of input vars that you have.

This is actually not a direct answer to the OP, but I think that it would be useful for anyone looking for a restriction on input fields.

+23
source

As far as I know, the upper limit on the number of form elements ( <input> or otherwise) in an HTML document.

However, if your page has a huge number of form elements, you may receive a POST request that is too large to be processed by the web server (the maximum size of POST requests depends on the server configuration).

+4
source

I do not think that there is a limit on the number of non-empty fields in the standards.

There are two practical limitations to consider:

  • Some browsers become effective if there are too many input fields on the page. I have not tried this with recent versions, but I remember how I tested it a few years ago, and then found that Internet Explorer felt bad when the number of fields was closed to hundreds.

  • Too many input fields on the page are simply inconvenient and perhaps a little scary for the user. Divide the entry on several pages or show placeholders and add input fields dynamically only where they are actually used.

+2
source

Technically, there is no maximum number of input fields that can be placed on a page. Practically for the user, it is somewhat inconvenient for the user to use / see all the input fields if the web page has a large number of input fields.

+1
source

I ran into a similar problem in an old application. I thought this was a limit on the number of HTML or PHP ini input elements for max_input_vars .

But after a more detailed study, it turned out that Suhosin was installed on my production machine, which wrote a PHP.ini configuration value with a much lower limit.

suhosin.post.max_vars = 400

+1
source

All Articles