What are the potential pitfalls of manually sending data via a GET request in PHP?

One potential pitfall of manually sending data via a GET request in PHP is that sensitive information can be exposed in the URL, making it visible to anyone who has access to the browser history or network traffic. To solve this issue, it is recommended to use POST requests for sending sensitive data, as they do not expose the data in the URL.

<form method="post" action="process_data.php">
    <input type="hidden" name="sensitive_data" value="12345">
    <button type="submit">Submit</button>
</form>