How can a user be given feedback after submitting a form and receiving a PDF download in PHP?

After a user submits a form and receives a PDF download in PHP, feedback can be provided by displaying a success message or redirecting to a thank you page. This can be achieved by setting a session variable before initiating the PDF download process and then checking for this variable after the download is complete.

// Start session
session_start();

// Process form submission and generate PDF download

// Set success message
$_SESSION['success_message'] = 'Form submitted successfully and PDF downloaded.';

// Redirect to thank you page
header('Location: thank_you.php');
exit;
```

In the `thank_you.php` page, you can display the success message using the session variable:

```php
// Start session
session_start();

// Display success message
if(isset($_SESSION['success_message'])) {
    echo $_SESSION['success_message'];
    // Unset the session variable to prevent displaying the message again
    unset($_SESSION['success_message']);
}