I'm trying to design a restaurant website as a project and every time I hit the submit button to order any food the page refreshes and jumps back to the top. I tried everything but can't figure out how to solve it.
This is what my button looks like at the moment:
<div class="BestellButton">
<form action = "insertorder.php" method ="post" >
<input type="hidden" name = "artikelnummer" value ="'.$row['Artikelnummer'].'"/>
<input type="hidden" name="URL" value= "Drinks.php" />
<button type = "submit">Bestellen</button>
</form>
</div>
Thanks for any help.