I need to send a URL with this format to a php file.
"http://localhost/project/api.php?id="+$scope.idProd+"&price="+$scope.priceProd
Can I do it with $http.post? I have tried to do
$http.post("http://localhost/project/api.phpid="+$scope.idProd+"&price="+$scope.priceProd)
.success(function(res){
console.log(res);
});
My php not received correctly this url and displays the following errors: Undefined index: id and Undefined index: price