On my website I use a pagination (similar to that one on the bottom of this page) for MySQL output. For the change of the current page I use `GET` method (variable page) and it works well. 
However, on my page I have also a form, using method `POST`, which acts as a filter for the MySQL output. This rises a problem because, when I change the form settings an submit them (`POST`), the page in the address line (`GET`) remains the same. This is problem in some cases when the filtered output has less pages than that one currently set.

Is it somehow possible to set the page variable to 0 always when the form is submitted? 
Particularly, I did it using `$_SERVER['REQUEST_METHOD'] == 'POST'`. However, this changes just the variable in the code. Not at the address line. 
On the other hand I want to keep the `POST` variable when I change the page of the output.

Thanks in advance.