Is there a limit on the number of <Input> tags in a <Form> tag for HTML / Apache / PHP?

OK, this is weird. I created a simple address book using php with mysql back end. So I added up to 138 lines of addresses, everything is fine. BTW I show my addresses in the input so that any user can edit it at any time. Therefore, when I click the submit button, it performs HTTP mail in all 138 lines and updates them. Everything is fine....

However, one fine day, when I tried to update the input of line 139, it discards the last input and gives an ERROR! This gives a php runtime error: "Note: Undefined index: lastN in C: \ wamp \ www \ Dawah \ go.php on line 24".

The btw LastN variable is obtained using $ _post ['lastN'].

As if there is a limit to the number of html input tags that can be submitted in one form!

I am very intrigued.

Has anyone come across this before?

+3
source share
1 answer

there is a sukhozin installation suhosin.request.max_vars, but this is only for sukhozin, not regular php.

since php 5.3.9 theres max_input_varswhich seems to be consistent with the behavior of http://www.php.net/manual/en/info.configuration.php#ini.max-input-vars

apache has settings to limit the size of the request, but they are indicated in bytes, and not in the number of variables, as far as I know. I would suggest that apache would just stop and issue an abad request instead of trimming the data as you see.

+4
source

All Articles