Advertisement
michaelrio

input_customer.php

Jan 28th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. <?php
  2.  
  3. include "fnc/DataAbsen.php";
  4.  
  5.  
  6. use fnc\DataAbsen;
  7.  
  8. $postdata = file_get_contents('php://input');
  9. $obj = json_decode($postdata, TRUE);
  10.  
  11. $name = $obj['name'];
  12. $posisi = $obj['position'];
  13. $address = $obj['address'];
  14. $pic = $obj['pic'];
  15. $phone = $obj['phone'];
  16. $latit = $obj['lat'];
  17. $longi = $obj['lon'];
  18. $sales = $obj['sales'];
  19. $distric = $obj['distric'];
  20. $province = $obj['province'];
  21. //$images = $obj['images'];
  22. $images = 'https:tracessystem.com/api/images/'.$obj['images'];
  23. //$longitude = "08977665";//$obj['wslongitude'];
  24.  
  25. $senddata = new DataAbsen();
  26. $dataabsen = $senddata->sendDataAbsen($name, $phone, $address, $pic, $posisi, $latit, $longi, $sales, $distric, $province,$images);
  27.  
  28. $jsonnya = json_encode($dataabsen);
  29.  
  30. echo $jsonnya;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement