0
How to recover the value in 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 php file how to recover this value?
It worked, thanks, and how do I pass 2 parameters?
– Yuri Rodrigues
@Yurirodrigues Passes an array with the 2 parameters :)
– DH.