I have a textarea in the form on http://language.cs.usm.my/synthesis/read.php. This URL is third party web page, how can i POST my content to that URL and replace the existing textarea content.
So far, i try to use the method below post my content to the URL but it seems failed to do so.
$scope.AudioCont = function(){
var req = $http({
method: 'POST',
url: 'http://language.cs.usm.my/synthesis/read.php',
data:{
test:"Nama saya ialah Ali"
}
})
.then(
function (response) {
alert("The data has been posted");
console.log(response);
},
function () {
alert("Failed to post!");
})
}
Anyone have suggestion on this? Thank in advance.