Home > Article > Backend Development > The solution to the problem that angularJS's $http.post cannot get data when it is sent to php
$http.post uses postJSON to send data to the php background but cannot receive the data
Solution:
Use the file_get_contents('php://input',true) method in php
<?php $text=file_get_contents('php://input',true); echo $text; ?>