Get Values From Json Encoded Array String
My .php code in a file 'fetchvalues.php' looks like this: echo json_encode(array($PostedDate.Places.$Company.$Designation.$ProjectDetails.$DesiredCandidate.$HRName.$HRContact.$Emai
Solution 1:
Update I just reread your question and it looks like you intentionally concatenated the values. Since you are using json_encode
it would be much better to send the values as an array, and simply access it in JavaScript.
echo json_encode(array($PostedDate, $Places, $Company, $Designation, $ProjectDetails, $DesiredCandidate, $HRName, $HRContact, $Email));
Then in JavaScript they would be accessed like this:
alert(data[1]); // Would alert the value of $Places
Post a Comment for "Get Values From Json Encoded Array String"