I have this code :
function name() {
$.ajax({
type: "POST",
url: "/index.php",
data: { id: $("#id").val(), date: new Date().getTime()},
});
}
I would like to understand what is the translation to put in a URL. I have tried everything and it doesn't work. In my mind, it should be index.php?id= ...
but no.