A
A
Alinnur2020-05-11 22:52:35
PHP
Alinnur, 2020-05-11 22:52:35

I send an ajax request to another php file, but the php file $_POST array is empty) and on the client successfully leave ajax via jquery request) how to get an answer ??


s
$(document).ready(function () {
$(".cl").on('click', function () {
let i = $('.id').val()
$.ajax({
method :"POST",
url:"/kil.php",
data:{i:"primer"},
success:function(e){console.log(e)}
}).done(function () {
alert(' done')
})
})
});

var_dump($_POST);
print_r($_GET);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question