Answers for "axios send post to php"

2

axios send post to php

var params = new URLSearchParams();
params.append('param1', 'value1');
params.append('param2', 'value2');
axios.post('/foo', params);
Posted by: Guest on April-30-2021
2

send axios request to php

<?php  
  $rp = json_decode(file_get_contents('php://input'), true);
Posted by: Guest on July-11-2020
-1

axios post php

// JS
axios.post(url, JSON.stringify({
name: "this.name",
email: "this.psswrd"
}))
  
// PHP
$_POST = json_decode(array_keys($_POST)[0], true);
Posted by: Guest on April-06-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language