文件“ fetchvalues.PHP”中的.PHP代码如下所示:
echo json_encode(array($PostedDate.Places.$Company.$Designation.$ProjectDetails.$DesiredCandidate.$HRName.$HRContact.$Email));
$(document).ready(function(){
$("#Edit").click(function(){
$.getJSON("fetchvalues.PHP?UpdateRecordID=" + $.cookie('UpdateRecordID'),function(data){
// Data retrieved in concatenated form. So we will break it and store values in array.
var concatenatedvalues = new Array();
concatenatedValues = data;
alert(concatenatedValues);
});
});
});