There is an array, filled with info (checked):
var notarius = []; for (i = 0; i <= count; i++) { notarius[i] = []; notarius[i]["name"] = jQuery(data).find("name" + i).text(); notarius[i]["not_type"] = jQuery(data).find("not_type" + i).text(); notarius[i]["time"] = jQuery(data).find("time" + i).text(); notarius[i]["phone"] = jQuery(data).find("phone" + i).text(); notarius[i]["address"] = jQuery(data).find("address" + i).text(); notarius[i]["licen"] = jQuery(data).find("licen" + i).text(); notarius[i]["date"] = jQuery(data).find("date" + i).text(); }
Data in it is accurate. Pass with post:
jQuery.post("/notary/write_in.php", { notar: notarius, count: count, type: 'save', city: city, }, function (data) { alert(data); });
We get:
$notary=$_POST['notar']; echo $notary[0]["name"];
The bottom line is emptiness. What have I confused?