i have problem with php.
AJAX
$(document).ready(function(){
$.ajax({
type: "POST", // i test post, get...
url:'TESTING.php',
data: {name: "alfred"},
success: function(){
alert("success"); // it show "success" !... :/
}
});
});
And php
<?php
//var_dump($_POST); array is empty
$name = $_POST['name']; // error line
echo $name;
?>
I test it on Localhost (if it is the problem). And i dont know, where is mistake. Thanks for any help