I am sending data from a form using the $ .get or $ .post method The data is taken 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 so that it can be saved to the database. Below the code you receive in GRAVA.resposta.php
$dados = $_GET['dados'];