Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. jsonData = JSON.stringify(serializableAttributes);
  2. console.log(jsonData);
  3. $.ajax({
  4. type: 'POST',
  5. url: 'Step2.php',
  6. data: {"jsonData" : jsonData},
  7. success: function(msg) {
  8. console.log("Json Sent! " +msg);
  9. window.location("")
  10. },
  11. error: function(request,msg){
  12. console.log("Error : " + msg);
  13. }
  14. });
  15.  
  16. if(isset($_POST["jsonData"])) {
  17. $json = $_POST["jsonData"];
  18. var_dump(json_decode($json, true));
  19. } else {
  20. echo "NO";
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement