I have a Php script, which works fine if I send data using a Simple HTML Form POST. But when I tried to port the same code to Angular JS, I made the form data into JSON string and used $http.post to initiate a Post request to my Php script. Although I can see the Post data reaching the Php script, it returns nothing.
My aim is to run a C Language program which I send to the Php script using Angular $http.post
Any help will be appreciated. Also, I get no error, nothing in Php script and nothing in Chrome Console.
Here is the $http.post request that I am using :
var res = $http.post("/xyz/phpscript.php/", data);
res.success(function(data, status) {
// success
});
res.error(function(data, status) {
// error
});