Last active
December 11, 2015 02:48
-
-
Save cameronjacobson/4533300 to your computer and use it in GitHub Desktop.
reading AngularJS POST with PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// If you don't want to depend on HTTP client to serialize POST body into URI | |
// encoded format | |
// ** For Example: AngularJS doesn't natively POST the same way jQuery does. | |
$post = json_decode(file_get_contents('php://input'), true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment