This is my way to enable the back-end that php processes through $ _POST. This is part of my code in the vue section inside the method.
Assuming you send it to post_url and you have an object, var myObject:
var myObject = {
property: value,
property1: value1,
property2: value2
}
Inside my vue method section:
updateForm: function( myObject ){
var post_url = (your post url);
axios.post(post_url, makePostReady( myObject ) )
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
}
( acios post) . , , , axios,
property=value&poperty1=value1&property2=value2......
:
function makePostReady( object )
{
var sentence = "";
for (var key in object) {
sentenceAdd = key + '=' + object[key] + '&';
sentence = sentence + sentenceAdd;
}
return sentence;
}
var_dump ($ _POST) post_url , . .
,
,

