【发布时间】:2012-03-02 09:15:30
【问题描述】:
所以,我使用 $.tableDnD.serialize() 函数来获取表 TR-s 的当前顺序,并希望与另一个变量一起发布到 php 函数。
$("#articlestable").tableDnD({
onDragClass: "drag",
onDrop: function(table, row) {
$.post('<?php echo HTML_ROOT; ?>/admin/cikkek/updateOrder/', {
pagesid : "1",
arr : $.tableDnD.serialize()
});
}
});
如果我只发送序列化数据,访问没有问题。 根据firebug发送的数据:
arr articlestable[]=1&articlestable[]=2&articlestable[]=4&articlestable[]=3
pagesid 1
主要问题,我如何在 php 中获取数据? 我想:
$pagesid = $_POST["pagesid"];
$orderarr = $_POST["arr"]["articlestable"];
感谢您的帮助,对不起我的英语。
【问题讨论】:
标签: php jquery ajax serialization post