w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Ajax Error “SyntaxError: JSON.parse: unexpected character”

1) I don't think you actually can do assign the $_POST to the $_SESSION variable. You need to do something like $_SESSION['post'] = $_POST

2) You have datatype: 'json' hence you need to echo from the php script using json_encode





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.