What are the potential pitfalls of using submit buttons in PHP forms for navigation?

Using submit buttons for navigation in PHP forms can lead to usability issues and confusion for users. It is better to use separate links or buttons for navigation purposes. To implement this, you can create separate links or buttons outside of the form to handle navigation actions.

<form action="process_form.php" method="post">
  <!-- form fields here -->
  <button type="submit">Submit</button>
</form>

<a href="page2.php">Go to Page 2</a>