0
I am sending data from a form using the $.get or $.post method The data is picked up by
var dados = $(this).serialize();
My code:
$(".formResposta").submit(function(){
var dados = $(this).serialize();
$.get('sys/GRAVA.resposta.php',
{
dados : dados
}, function(retorno){
$('.retorno4').show('400');
$('#alert1').prepend(retorno);
});
});
I would like to know how to extract the data, to be able to save in the database. Below the code you receive in GRAVA.resposta.php
$dados = $_GET['dados'];
This $data = $_GET['data'] is already picking up the amount sent. Exactly what you need?
– Lucas de Carvalho
I used to use it like this: $name = $_POST['name']; $reply = $_POST['reply']; $id_comment = $_POST['btnIDComent']; $Ipres = $_POST['btnIPres']; I know it sends name= and such. But how do I extract this data
– José Luis Aldrighi