I know the question is very strange, but it is a need that we have, I need to move to another page of some variables that I have redeemed, but it is not just passing but redirecting the page as well. I can not use a window.location, it needs to be per post.
What I have at the moment, the return is showing me the variables that I need to pass, but as I said I need to redirect.
function preparaPagina() { $('button.inline-button').click(function() { var self = $(this); var IdCota = self.siblings('.product-info').data('idcota'); var IdProduto = self.siblings('.product-info').data('produto'); var IdUsuario = self.siblings('.product-info').data('usuario'); var NomeUser = self.siblings('.product-info').data('nome'); dados = {"IdCota": IdCota, "IdProduto": IdProduto, "IdUsuario": IdUsuario, "NomeUser": NomeUser }; $.ajax({ type: 'POST', url: 'iCadAutorizacaoTrans.php', data : dados, success:function(data){ console.log(data); } }); }) } preparaPagina();