xxxxxxxxxx
<body>
<h2>Button onclick</h2>
<form action="/action_first_page.php" method="get">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<button type="submit">Submit</button><br>
<button type="submit" formaction="/action_second_page.php">Submit to another page</button>
</form>
</body>