I have a bug actually with this code.
My JS code is the following:
<script>
var card_Name = "Tour Eiffel";
</script>
I send the data in ajax:
var myDatas = { card_Name: card_Name };
$.ajax({
type: "POST",
url: "saveContent.php",
data: myDatas,
cache: false,
contentType: false,
processData: false,
success: function(data){
alert(data);
}
});
In my PHP i get the element like this:
print_r($_POST['card_Name']);
But nothing is shown in the XHRs parts of my console...
Any idea why ?
Thanks.