Server settings for posting checkbox & nesting values in PHP
I have form regarding add product. This is a big form containing lots of input fields, nested loops, add more functionality. When I fill all the fields & submit the form on my local machine & also on my demo server, it submitted successfully. But the same code is not working on client's live server. Database, database records, source code files all are same but it does not work on live server.
It shows the message like "Product added successfully" on live server but in actual id doesn't.
For e.g. there are 92 colors with checkbox option available on add product page & When I check one of the color it shows the section where I can add more information about that colored product like size, price, quantity(add more functionality for this section).
Likewise I checked all the colors & fill the information about all colors respectively. after submitting I print the posted value & found that it post sum of the records out of 92 colors which I select & fill the information of them.
Same criteria, same database, same source code files works on my local machine, demo server but it does not work on live server.
Someone suggest me that check the server config for max_input_nesting_level, max_input vars etc. I also thinks that there is some sever setting I need to do for the same but what are they I don't know.
There is a setting in php_ini namely "post_max_size" increase its limit to 250M or some greater No, notice the
Mafter 250M it stands for MB in post data
I found the answer for above criteria. I have increased the size of "max_input_vars" from php.ini file & it works!!