What is the best practice for submitting a form using a normal link in PHP without using JavaScript?

When submitting a form using a normal link in PHP without using JavaScript, you can use the GET method to pass the form data through the URL parameters. This way, you can retrieve the form data on the server side and process it accordingly. However, it's important to note that using the GET method may expose sensitive information in the URL, so it's recommended to use the POST method for handling sensitive data.

<form method="post" action="process_form.php">
  <input type="text" name="username">
  <input type="password" name="password">
  <a href="process_form.php?username=<?php echo $_POST['username']; ?>&password=<?php echo $_POST['password']; ?>">Submit</a>
</form>