Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jsonData = JSON.stringify(serializableAttributes);
- console.log(jsonData);
- $.ajax({
- type: 'POST',
- url: 'Step2.php',
- data: {"jsonData" : jsonData},
- success: function(msg) {
- console.log("Json Sent! " +msg);
- window.location("")
- },
- error: function(request,msg){
- console.log("Error : " + msg);
- }
- });
- if(isset($_POST["jsonData"])) {
- $json = $_POST["jsonData"];
- var_dump(json_decode($json, true));
- } else {
- echo "NO";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement