Last active
March 19, 2016 20:37
-
-
Save bangiqi/e0b08de155f24b2d3b22 to your computer and use it in GitHub Desktop.
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 | |
include 'koneksi.php'; | |
header('Content-Type: application/json'); | |
$getFirstname = $_POST['first_name']; | |
$getLastName = $_POST['last_name']; | |
$getDate = $_POST['date']; | |
$getBio = $_POST['bio']; | |
$array = array(); | |
$array = [ | |
'first_name'=>$getFirstname, | |
'last_name'=>$getLastName, | |
'date'=>$getDate, | |
'bio'=>$getBio | |
]; | |
echo json_encode($array); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment