I want to send an array via jQuery using Ajax to another PHP file, however I do not know how to access it in PHP.
I'm sending by GET
I do not know if it would be ideal either.
nome_receita
is a variable and ingredientes
is the array that I need to "open" in PHP.
$.get("http://localhost/estudos/oquetemprahj/servidor.php?nome_receita="+nome_receita+"&&ingredientes="+ingredientes+"",function(retorno)
{
alert(retorno);
});