Is it possible to emulate a valid AJAX request?
axios.post('php/data.php', { act: 'load' }) .then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); }); data can be obtained through
$array = json_decode(file_get_contents('php://input'), true); I want to get data in $ _POST