What are the potential pitfalls to be aware of when using GET and POST methods with form data in PHP?

One potential pitfall when using GET method to submit form data is that sensitive information can be exposed in the URL, making it visible to others. To avoid this, it's recommended to use POST method for submitting form data, which sends the data in the request body rather than in the URL.

<form action="submit.php" method="post">
    <!-- form fields go here -->
</form>