What are the potential pitfalls of mixing GET and POST methods in PHP forms?

Mixing GET and POST methods in PHP forms can lead to confusion and potential security vulnerabilities. It is recommended to use either GET or POST consistently for submitting form data to maintain clarity and security. To solve this issue, ensure that the form method matches the method used in the PHP script handling the form submission.

<form method="POST" action="process_form.php">
  <!-- form fields here -->
</form>
```

In the PHP script `process_form.php`, ensure that you are accessing form data using `$_POST` superglobal for consistency:

```php
$name = $_POST['name'];
$email = $_POST['email'];
// process form data