Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Maxmium no of input tag in an html form?

i can't find any information inside the w3c html strict spec http://www.w3.org/TR/html4/sgml/dtd.html

like image 729
sunnycmf Avatar asked Nov 27 '22 21:11

sunnycmf


2 Answers

PHP USERS:

If you are using php to process your form take note that php has a max_input_vars setting in the php ini file. I believe the default is 1000.

I ran into this while building a cakephp app. To see if this is affecting your post, count how many rows of data you are putting into the form and then count how many rows are actually posted back.

So essentially your form would be limited by the number of input vars you have.

This isn't really an direct answer to the OP but I think it would be helpful for anyone searching for a limit on input fields.

like image 172
styks Avatar answered Dec 04 '22 07:12

styks


To my knowledge, there is no upper limit to the number of form elements (<input> or otherwise) in an HTML document.

However, if you have a huge number of form elements on your page, you might end up with 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).

like image 25
Frédéric Hamidi Avatar answered Dec 04 '22 05:12

Frédéric Hamidi