I want to receive date and send it to the php file
$http.post('views/php.php', {
item: $scope.email
})
.success(function(data) {
console.log(data);
});
but console log says
POST http://localhost:9000/views/php.php 404 (Not Found)
However if I go the link it shows and starts downloading.
Why does this happen?