I can't find any suitable answeres so I ask a new question.
I am working on a bigger webapplication. Now in one Part of the app I collect data from an existing table (<table class="myContent">...</table>
) with jQuery. Code doesn't matters at this point.
What happens is, I create a Array with content in it and it works fine. Content looks like
Array
(
[artikel] => Array
(
[0] => Array
(
[id] => 602145-69430
[name] => Legraphic 2 Top
[farbe] => Cashmere Blue mix
[menge] => 0
[epreis] => 25.95
[gpreis] => 0.00
[uvp] => 64.90
[grt1] => XS
[grt2] => S
[grt3] => M
[grt4] => L
[grt5] => XL
[grt6] => XXL
[grt7] => 0
[grt8] => 0
[grt9] => 0
[grt10] => 0
[grt11] => 0
[grt12] => 0
[gr1] =>
[gr2] =>
[gr3] =>
[gr4] =>
[gr5] =>
[gr6] =>
[gr7] =>
[gr8] =>
[gr9] =>
[gr10] =>
[gr11] =>
[gr12] =>
[ldate] => LD: 01.02.2015 - 28.02.2015
)
[1] => Array
(
[id] => 602145-60430
[name] => Legraphic 2 Top
[farbe] => Cashmere Blue
[menge] => 0
[epreis] => 25.95
[gpreis] => 0.00
[uvp] => 64.90
[grt1] => XS
[grt2] => S
[grt3] => M
[grt4] => L
[grt5] => XL
[grt6] => XXL
[grt7] => 0
[grt8] => 0
[grt9] => 0
[grt10] => 0
[grt11] => 0
[grt12] => 0
[gr1] =>
[gr2] =>
[gr3] =>
[gr4] =>
[gr5] =>
[gr6] =>
[gr7] =>
[gr8] =>
[gr9] =>
[gr10] =>
[gr11] =>
[gr12] =>
[ldate] => LD: 01.02.2015 - 28.02.2015
)
and so on. Now after creating this array, I send it like
$.post('php/_includes/_ajaxIncludes/ajax.inc.container.php',
{
section: 'save',
data: myArray
});
I call ajax.inc.container.php
and in that file I include a file named save.php
. I can switch the inc-file by changing the section-parameter.
Now here is the issue:
The created array has eg. 40 positions (or even more) in artikel
(I did console.log(myArray);
right before $.post
) but if I print_r($_POST['data']['artikel']);
in php, I only get 31 positions and the last position isn't even completed. Looks like
[31] => Array
(
[id] => 602147-69430
[name] => Leblock 1 Blouse
[farbe] => Cashmere Blue mix
[menge] => 0
[epreis] => 35.95
[gpreis] => 0.00
[uvp] => 89.90
)
anyone know why this can happen ?
Additional informations:
post_max_size 64M
EDIT
Obviously the failure comes from jquery.
If I add .done()
and .fail()
to $.post()
and return the response console.log(response);
he goes into fail()
if there are more than 30 positions.