$.fn.fieldValues = function(successful)
{
var values = {};
this.each(function()
{
if(strstr(this.name, '[]', true))
{
var tmp = this.name.replace(/\[\]/, '');
if(typeof values[tmp] == 'undefined') values[tmp] = {};
var x = 0;
while(typeof values[tmp][x] != 'undefined') x++;
values[tmp][x] = $(this).val();
}
else values[this.name] = $(this).val();
});
return values;
}
problem is I get this array on php side:
array(['tagCloud'] => '[object Object]', ['status'] => 'Active'.....)
Why is tagCloud an object, how can I post a whole associative array to php?