What are the potential pitfalls of using href links instead of submit buttons in PHP forms for page navigation?

Using href links instead of submit buttons in PHP forms for page navigation can lead to potential pitfalls such as security vulnerabilities, as the form data is not being properly validated or sanitized before being sent to the server. To solve this issue, it is recommended to use submit buttons with proper form validation and sanitization to ensure the security of the application.

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