Jump to content

Checkbox Post Limit


StormTheGates
Go to solution Solved by mac_gyver,

Recommended Posts

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

Link to comment
Share on other sites

  • Solution

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 by mac_gyver
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.