Posts by Wellington Oliveira • 1 point
1 post
-
-2
votes1
answer1118
viewsA: How to pass a php array as a $.ajax data parameter?
nomes = []; nomes[0] = 'maria'; nomes[1] = 'joao'; nomes[2] = 'josé'; $.ajax({ type: "POST", data: {nomes :nomes}, url: "pagina.php", success: function(msg){ console.log(data); } });…