I have a page in html and php and put a form at the bottom of the page.
When I click the "submit" button the page refreshes and goes up.
This way the user has to scroll all the time until he reaches down again to see if the data has been registered, if there is an error message ...
<form id="formulario" name="login" method="POST"
action="<?php echo $_SERVER["REQUEST_URI"];?>">
In the action I tried "PHP_SELF" too.
The structure is html, body and a div, the form is inside the div.