Answer the question
In order to leave comments, you need to log in
Ajax. How to get an array from a handler?
There is a js file
function auth(){
var msg=$('.form_auth').serialize();
$.ajax({
type:'POST',
url:"ajax/handler.php",
data:msg,
cache:false,
success:function(data){
$("#error").html(data);
}
});
}
Answer the question
In order to leave comments, you need to log in
How difficult it is to explain.
Gets the body of the document.
Are you asking how to give php a json data handler?
Let's say we have an array
$arr = [
"name" => "vasya",
"age" => "23"
];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question