Last active
May 31, 2017 22:37
-
-
Save Klerith/83881e65d6034a077278 to your computer and use it in GitHub Desktop.
PHP: save data from angular post
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 | |
session_start(); | |
include '../../classes/class.Database.php'; | |
include '../../classes/class.Deduccion.php'; | |
echo $Data; | |
$Deduccion = new Deduccion(); | |
$postdata = file_get_contents("php://input"); | |
$request = json_decode($postdata); | |
$mensaje = $request->mensaje; | |
echo json_encode( $request ); | |
// echo json_encode( array('mensaje' => 'yey!!!')); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment