StormTheGates Posted September 16, 2013 Share Posted September 16, 2013 I am having a very odd error that Ive never encountered before. Here is the situation: I have a database table that gets echoed out in rows in a table, with checkboxes for each user. Everything works fine with only a few users, the entire thing runs normally. However, at exactly the 250th checkbox the form stops POSTing data. For example, given this code snippet: <?php $people = $_POST['change']; var_dump($people); ?> $people will only ever contain the first 249 checkboxes selected, even if all 400some are. Does anyone have any idea why this could be, or if there is some type of memory limit I should check? My memory_limit is 512mb and max post size is 500mb Quote Link to comment https://forums.phpfreaks.com/topic/282195-checkbox-post-limit/ Share on other sites More sharing options...
Psycho Posted September 16, 2013 Share Posted September 16, 2013 Impossible to say without seeing the code that creates the checkboxes. Is this only an issue when more than 250 are checked or when there are more than 250 period? Quote Link to comment https://forums.phpfreaks.com/topic/282195-checkbox-post-limit/#findComment-1449724 Share on other sites More sharing options...
Solution mac_gyver Posted September 16, 2013 Solution Share Posted September 16, 2013 (edited) it's probably a setting like this one - http://www.hardened-php.net/suhosin/configuration.html#suhosin.post.max_vars why do you have that many chackboxes on one page? who would look at that much info at a time? edit: there's also this php setting (starting in php5.3.9) - http://www.php.net/manual/en/info.configuration.php#ini.max-input-vars Edited September 16, 2013 by mac_gyver Quote Link to comment https://forums.phpfreaks.com/topic/282195-checkbox-post-limit/#findComment-1449725 Share on other sites More sharing options...
StormTheGates Posted September 16, 2013 Author Share Posted September 16, 2013 it's probably a setting like this one - http://www.hardened-php.net/suhosin/configuration.html#suhosin.post.max_vars why do you have that many chackboxes on one page? who would look at that much info at a time? edit: there's also this php setting (starting in php5.3.9) - http://www.php.net/manual/en/info.configuration.php#ini.max-input-vars This was it! Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/282195-checkbox-post-limit/#findComment-1449730 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.