What is the common issue with using checkboxes for deletion in PHP scripts?

The common issue with using checkboxes for deletion in PHP scripts is that it can lead to security vulnerabilities such as Cross-Site Request Forgery (CSRF) attacks. To solve this issue, you should use a unique identifier for each record that needs to be deleted and verify this identifier before processing the deletion request.

```php
// Check if the form is submitted
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    // Validate the CSRF token
    if (isset($_POST['csrf_token']) && $_POST['csrf_token'] === $_SESSION['csrf_token']) {
        // Iterate through the checkboxes and delete the selected records
        foreach ($_POST['delete'] as $record_id) {
            // Delete the record with the specified identifier
            // Your deletion logic here
        }
    } else {
        // Invalid CSRF token
        echo "CSRF token validation failed";
    }
}
```
In this code snippet, we first check if the form is submitted and then validate the CSRF token to prevent CSRF attacks. We then iterate through the selected checkboxes and delete the records with the specified identifiers.