What are the potential pitfalls of using a text link to submit a form in PHP?

One potential pitfall of using a text link to submit a form in PHP is that it may not work as expected for users who have disabled JavaScript in their browsers. To solve this issue, you can use a button element instead of a text link to submit the form, as buttons are natively supported by browsers for form submission.

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