Is it recommended to use GET or POST method in a form submission when working with PHP and databases?

When working with PHP and databases, it is recommended to use the POST method in form submissions rather than the GET method. This is because POST method sends data securely in the request body, while GET method appends data to the URL which can be seen by users and may pose security risks, especially when dealing with sensitive information like database credentials.

<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>
```

In the PHP script (process_form.php) that processes the form submission, you can access the form data using $_POST superglobal array:

```php
$username = $_POST['username'];
$password = $_POST['password'];

// Process the form data and interact with the database here