Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

axios post php

// JS
axios.post(url, JSON.stringify({
name: "this.name",
email: "this.psswrd"
}))
  
// PHP
$_POST = json_decode(array_keys($_POST)[0], true);
Source by github.com #
 
PREVIOUS NEXT
Tagged: #axios #post #php
ADD COMMENT
Topic
Name
4+4 =