Posts by gbsilva • 31 points
2 posts
-
2
votes0
answers45
viewsQ: How to pick up values from an object passed by fetch by PHP
var dados = { id: 1234, nome: "Teste", tipo: "pagamento" }; fetch('dados.php', { method: 'POST', body: JSON.stringify(dados), headers: { 'Content-Type': 'application/json' } }) I received this help…
-
1
votes1
answer162
viewsQ: Javascript pass more than one parameter through the fetch
In the link below, I managed to send a parameter via fetch by body, but I need to send more than one, for example, values of a form. I need an example, using POST to send through the body, for…