What are the potential pitfalls when using GET method in PHP to retrieve user information?

Using the GET method in PHP to retrieve user information can expose sensitive data as it passes information through the URL, making it visible to anyone who has access to the URL. To mitigate this security risk, it is recommended to use POST method instead for sensitive data.

<form method="POST" action="process_form.php">
  <label for="username">Username:</label>
  <input type="text" id="username" name="username">
  <input type="submit" value="Submit">
</form>
```

In the process_form.php file:

```php
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
  $username = $_POST["username"];
  // Process the username securely
}
?>