What are the advantages and disadvantages of using a submit button versus a link for form submission in PHP?

When submitting a form in PHP, using a submit button is the standard method as it provides a clear visual indication to the user that the form is being submitted. However, using a link for form submission can be advantageous in cases where you want to customize the appearance of the button or trigger the form submission through JavaScript. The disadvantage of using a link is that it may not be as accessible as a submit button for users who rely on screen readers or keyboard navigation.

<form action="submit.php" method="post">
  <input type="text" name="username">
  <input type="password" name="password">
  <button type="submit">Submit</button>
</form>