0
I need to pass one array via POST, I tried it this way:
const params = new URLSearchParams();
params.append('pagamentos', this.variavel_array);
axios.post('grava_pedido_pdv.php', params);
The variable variavel_array
contains the value {'nome' : 'victor', 'cod' : 1}
, however, on the console I visualize how "payments: [Object Object]" and I can’t read that figure in PHP.