Back Button with Searched Records

Asked

Viewed 50 times

2

I have a button that at the moment is only 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 go back to the screen where all the records are searched and preferably to exact page, how would it do that?

Palely solved

(header"Location:. /query". $_SERVER['QUERY_STRING']);

It’s not exactly what I wanted yet, but it’ll do for now.

1 answer

1

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

Zend Framework 1

Zend Framework 2

Browser other questions tagged

You are not signed in. Login or sign up in order to post.