How do I retrieve the value in the php file when I use this angularjs post method?
$http({
method : 'POST',
url : 'xxxxxxx.com/consulta.php',
data : JSON.stringify($scope.newName),
headers : { 'Content-Type': 'application/x-www-form-urlencoded' }
}) .success(function (data) {
$scope.nomes = data;
});
I send the parameters by date: JSON.stringify ($ scope.newName)
In the php file how do I retrieve this value?