I have a list <ul>
of articles <li>
and an event handler on a button.
When clicking the button, I aggregate all <li>
s ID (integer) using:
data.articles = $('#category-articles').sortable('toArray');
// alerts 1298
alert(data.articles.length);
$.post(....);
On the serverside:
<?php
// echoes 968
echo sizeof($_POST['articles']);
Making it clear:
- trying to send 1298 items in an array
data.articles
- receiving only the first 968 items in an array
$_POST['articles']
Data is getting lost during post action. There is no code between the actual post and the target PHP that could filter or remove any items.
I'm using apache and PHP 5.3.
Request:
Content-Length: up to 80,000 bytes
Server:
post_max_size = 100M
upload_max_filesize = 100M
I enabled error reporting but it just shrinks my array and I don't get why it doesn't sent the full data. Anyone has an idea?