I am sending a serialized form with $.post to a Controller PHP:
$.post('/Controller.php',
{
action: 'register',
data: $('#regForm').serialize()
},
function(msg){
if(parseInt(msg.status)==1)
{
window.location=msg.txt;
}
else if(parseInt(msg.status)==0)
{
error(1,msg.txt);
}
hideshow('loading',0);
},
"json"
);
I would now expect to be able to access the Form fields by $_POST['fieldname'] but INSTEAD I have a Get like parameter string in $_POST['data'] -.- What do I do wrong ?