Basically what I need is for a '' back '' button inside my form. It has to be inside for aesthetic reasons, the back button would be inline with the submit button.
I made a summary code:
<form action="php/***.php" method="post">
<p>DIGITE SEU NOME:
<input type="text" placeholder="nome" name="nome" id="nome"><p>
<input type="submit">
<a onClick="window.location='home.php';">
<button style="margin-left: 10%" class="bt2" >Voltar</button>
</a>
</form>
But when I click the 'back' button it directs you to the action page on the form, not the onclick home page.
I managed to make this work on one page, but if I copy exactly the same code, it does not work on other pages. Very strange.