Hello! I have such a question. There is an array of the form:
arr[0][0]='name'; arr[0][1]='John'; arr[1][0]='surn'; arr[1][1]='Smith'; ... Those. in cell 0 the name of the field is stored, and in 1 its value. You need to pass it through AJAX . But when sent to the server, it says an array of undefined :
Data Saved: Array ( [undefined] => undefined ) In the code (documentation) it looks like this:
data: { name: "John", surn: "Smith", ... }, but I tried to convey directly:
data: arr, Does anyone have any idea how to transfer such an array to the server? Thank you in advance.