I have this code that sends data from a form to an script external
$(document).on("submit","#previewOc", function(e) {
e.preventDefault();
$.ajax({
url: "assets/contentHtml/ocs/preview.php",
type: "POST",
data: new FormData(this),
contentType: false,
processData: false,
success: function(data){
VentanaCentrada(\'assets/contentHtml/ocs/preview.php\',\'Orden\',\'\',\'1024\',\'768\',\'true\');
console.log(data);
}
});
});
And in the console it appears that if the data POST was sent, but in my script , at the time of doing var_dump ($_POST)
only one empty array appears, I mean the data was not received POST array()
What's wrong with my code ?, Thanks.