Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "fnc/DataAbsen.php";
- use fnc\DataAbsen;
- $postdata = file_get_contents('php://input');
- $obj = json_decode($postdata, TRUE);
- $name = $obj['name'];
- $posisi = $obj['position'];
- $address = $obj['address'];
- $pic = $obj['pic'];
- $phone = $obj['phone'];
- $latit = $obj['lat'];
- $longi = $obj['lon'];
- $sales = $obj['sales'];
- $distric = $obj['distric'];
- $province = $obj['province'];
- //$images = $obj['images'];
- $images = 'https:tracessystem.com/api/images/'.$obj['images'];
- //$longitude = "08977665";//$obj['wslongitude'];
- $senddata = new DataAbsen();
- $dataabsen = $senddata->sendDataAbsen($name, $phone, $address, $pic, $posisi, $latit, $longi, $sales, $distric, $province,$images);
- $jsonnya = json_encode($dataabsen);
- echo $jsonnya;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement