我順利地通過與AJAX POST方法如下數值來我的PHP文件PHP不能發送貼出的數組元素
name:John
email:[email protected]
comments:Hello
category_list[]:Books
category_list[]:Documents
的問題是,下面的代碼發送的HelloArray
代替HelloBooksDocuments
。你能幫我找到我的錯誤嗎?
$email = $_POST["email"];
$name = $_POST["name"]);
$comments = $_POST["comments"];
$categories = $_POST["category_list"]; //the problem is here
http://stackoverflow.com/questions/34298832/count-of-array-showing-it-is-full-but-not-elements-are-inside/34298869#34298869 –