What are the potential risks of transferring MD5 passwords via the GET method in PHP?

Transferring MD5 passwords via the GET method in PHP is not secure because the passwords can be easily intercepted and viewed by malicious users since the data is passed through the URL. To solve this issue, it is recommended to use the POST method for transferring sensitive information like passwords, as it is more secure and hides the data from being visible in the URL.

<form action="login.php" method="post">
  <label for="username">Username:</label>
  <input type="text" id="username" name="username"><br><br>
  <label for="password">Password:</label>
  <input type="password" id="password" name="password"><br><br>
  <input type="submit" value="Login">
</form>