Hello All:
I am trying to send json string to the server using jquery ajax, as below. It decodes correctly when GET is used, but does not work when POST is used. Any suggestions?
$.ajax({
type: "GET",
url: "../pssops21/php/insertTempTransData.php",
data: 'data=' + strSelectedItems,
dataType: 'json',
async: false,
success: handleresponse
});
Server side php:
$json = json_decode(stripslashes($_POST['data']), true);
After the comments, I realize it is not an ajax post issue, but a decoding issue.
Thank you.