I’m really sory… might not be the right place to ask this question. I’m new here and i’ve asked everywhere about this problem and nobody seems to know what’s going on.
I think because here everybody knows very well open suse linux might know something.
Basically my server is a web server.
I program on it with php and mysql.
The post is $_POST.
I have a web page that has a lot of checkboxes.I’m doing an user permission module.
So those checkboxes look like this:
<input type=‘checkbox’ name=‘Data$ModuleID][View]$ColumnID]’ value=’$ColumnID’>
or
<input type=‘checkbox’ name=‘Data$ModuleID][Edit]$ColumnID]’ value=’$ColumnID’>
Basically all tables in my database have an unique ID and their columns as well.
I store this in 2 separate tables called Module and ModuleColumn.
In order to give or take access to a user i store into a field a coma separated id of modules and columns he has access to
it would look like this at the end:
1|1,2,3,4^2,3
here first 1 is module id.
1,2,3,4 are columns to view
2,3 are columns he can edit
The main form that submits all this is organized like this:
ModuleName
checkboxes for view
<input type=‘checkbox’ name=‘Data[1][View][1]’ value=‘1’>
<input type=‘checkbox’ name=‘Data[1][View][2]’ value=‘2’>
<input type=‘checkbox’ name=‘Data[1][View][3]’ value=‘3’>
<input type=‘checkbox’ name=‘Data[1][View][4]’ value=‘4’>
<input type=‘checkbox’ name=‘Data[1][View][5]’ value=‘5’>
checkboxes for edit
<input type=‘checkbox’ name=‘Data[1][Edit][1]’ value=‘1’>
<input type=‘checkbox’ name=‘Data[1][Edit][2]’ value=‘2’>
<input type=‘checkbox’ name=‘Data[1][Edit][3]’ value=‘3’>
<input type=‘checkbox’ name=‘Data[1][Edit][4]’ value=‘4’>
<input type=‘checkbox’ name=‘Data[1][Edit][5]’ value=‘5’>
first key 1 is ModuleID
after [View] and [Edit] those keys are ModuleColumnID
and the form is adding next module and so on…
ex:
checkboxes for view module 2
<input type=‘checkbox’ name=‘Data[2][View][1]’ value=‘1’>
<input type=‘checkbox’ name=‘Data[2][View][2]’ value=‘2’>
<input type=‘checkbox’ name=‘Data[2][View][3]’ value=‘3’>
<input type=‘checkbox’ name=‘Data[2][View][4]’ value=‘4’>
checkboxes for edit module 2
<input type=‘checkbox’ name=‘Data[2][Edit][1]’ value=‘1’>
<input type=‘checkbox’ name=‘Data[2][Edit][2]’ value=‘2’>
<input type=‘checkbox’ name=‘Data[2][Edit][3]’ value=‘3’>
<input type=‘checkbox’ name=‘Data[2][Edit][4]’ value=‘4’>
Well everything was fine until i’ve added my 24’th module.
i have 194 checkboxes until this point.
The 195 one won’t be submitted by the form.
so my post array shows my Data[23][View][1] to 14 and few in Edit side
but Data[24]… does not exist.
So i think the $_POST is limited by something. i even measured the size of it in the page it submits.I used this:
$mypost = http_build_query($_POST);
$size = strlen($mypost);
and it is 6045.
My max_post_size on the php.ini is set to 20M.
I hope this helps you to understand what my problem is.