Back button with searched records

2

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.

    
asked by anonymous 27.02.2015 / 19:55

1 answer

1

If you are developing with Zend Framework use the URL helper (according to your version of the Zend Framework) to build a link with the element <a>

Zend Framework 1

Zend Framework 2

    
21.05.2015 / 16:45