I\'ve been using Serialize() to pass checkbox form data with Post() for a basket that can hold multiple items of the same category.
When I post them using the submit
$.ajax({ type: 'post', cache: false, url: './ajax.php', data: { arrayData } });
You must use {} to contain the { arrayData } variable.
{}
{ arrayData }
then echo $_POST[arrayData]; will yield Array. If not, it will not send array value.
echo $_POST[arrayData];