What potential pitfalls should be considered when using the GET method to pass variables in PHP?

One potential pitfall of using the GET method to pass variables in PHP is that sensitive information can be exposed in the URL, making it visible to users and potentially vulnerable to security risks. To mitigate this issue, it is recommended to use the POST method for passing sensitive data instead of GET.

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