What are the potential pitfalls of passing values through links in PHP?

One potential pitfall of passing values through links in PHP is the risk of exposing sensitive information in the URL, as it can be easily accessed and manipulated by users. To prevent this, it is recommended to use POST requests instead of GET requests when passing sensitive data.

<form method="post" action="process.php">
    <input type="hidden" name="id" value="123">
    <button type="submit">Submit</button>
</form>