$_POST get cut off

Hi Experts,

I have a html table with above 230 rows, and 10 input controls per row plus 20 input controls outside of my table

Using print_r($_POST) I noticed that not all my controls are added to the post array, it stops at about row 20.

I also set my post_limit to zero(unlimited) within my php.ini, but it doesn't help.

Thank you
APD TorontoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
There is a 'php.ini' setting called 'max_input_vars' which is set to 1000.  230x10+20 is 2320 input variables which is why you are getting cutoff.  http://php.net/manual/en/info.configuration.php#ini.max-input-vars

If you are uploading a lot of data, then 'post_max_size' could affect it also though it's default is 8M. http://php.net/manual/en/ini.core.php#ini.post-max-size

And your web server may have limits on the POST data size.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dave BaldwinFixer of ProblemsCommented:
Apache has several limits that can be set starting with 'LimitRequestBody' http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestbody  There is no way to tell from PHP if any of those are set.
0
Mukesh YadavFull Stack DeveloperCommented:
Can you share your html code?
0
Ray PaseurCommented:
Years ago, this was reported as a PHP Bug, but it is not a bug.  The discussion here may be helpful (read all the way to the end).
https://bugs.php.net/bug.php?id=55810

Checkto see if the hosting company is using Suhosin.  It's supposed to be a security product, but it can introduce silent run-time failures into web sites.  In my many years of experience with web sites and web applications, Suhosin has never once saved me from any attack, but has on several occasions suddenly brought applications to their knees.  If your host has it installed, ask them to remove it from your server. If they cannot do that, find another hosting company.

Also, it you have an application that needs 2,000+ input controls, you might want to reconsider the design.  No human being can keep more than about 7 or 8 things in mind at once, and input controls are for communicating with human beings.  It might make sense to recast the application in an AJAX design, so that your (human) clients could submit their data in smaller segments.  With an AJAX-animated form you could keep lots of data elements on the page, and only activate the input controls as they are needed.
0
APD TorontoAuthor Commented:
Sorry guys I was under the weather yesterday.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.