Heads up! This post was written 12 years ago. Some information might be outdated or may have changed since then.
$.post('/admin/gallery/ajax/', {
'action': 'add_photogallery',
'data': $('#add_new_cat').serialize()
}, function(data) {
/* малко код */
}); a в php частта за "десериализиране" на "data"-та правим следното: $d = array();
if(isset($_POST['data'])) {
parse_str($_POST['data'],$d);
}
echo '';
print_r($d);
echo '
'; пс: знам малоумно е :)