I have a button that at the moment is just a button:
<button type="button" name="voltar" id="voltar" class="btn btn-default" style="margin-left: 30px">Cancelar</button>
$('#voltar').click(function() {
alert('voltar');
});
But I need it to return to the screen where all the searched records are and preferably to exact page, how would you do that?
Solved in a palatable way
header ("Location: ./ query". $ _SERVER ['QUERY_STRING']);
It's not exactly what you wanted, but it will do for now.