Guest User

Untitled

a guest
Jan 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. var JSONstr = JSON.stringify(fullInfoArray);
  2. document.getElementById('JSONfullInfoArray').value= JSONstr;
  3.  
  4. $data = json_decode($_POST["JSONfullInfoArray"]);
  5. var_dump($data);
  6.  
  7. echo($_POST["JSONfullInfoArray"]);
  8.  
  9. $postedData = $_POST["JSONfullInfoArray"];
  10. $tempData = str_replace("\", "",$postedData);
  11. $cleanData = json_decode($tempData);
  12. var_dump($cleanData);
  13.  
  14. $tempData = html_entity_decode($tempData);
  15. $cleanData = json_decode($tempData);
  16.  
  17. stripslashes(htmlspecialchars(JSON_DATA))
  18.  
  19. var JSONstr = encodeURIComponent(JSON.stringify(fullInfoArray));
  20. document.getElementById('JSONfullInfoArray').value = JSONstr;
  21.  
  22. $data = json_decode($_POST["JSONfullInfoArray"]);
  23. var_dump($data);
  24.  
  25. echo($_POST["JSONfullInfoArray"]);
Add Comment
Please, Sign In to add comment