I want to send a vector from javascript to PHP. I have the following code but it is not working. How to do it?
info = [];
info[0] = 'thiago';
info[1] = 'carlos';
alert(info[0]);
$.ajax({
type: "GET",
data: {info:info},
url: "buscar.php",
success: function(msg){
console.log(msg);
}
});