What are common pitfalls when using checkboxes in PHP forms?

One common pitfall when using checkboxes in PHP forms is that unchecked checkboxes do not send any value in the form submission. To solve this issue, you can use hidden input fields to ensure that the checkbox values are always submitted, even when they are unchecked.

```php
<form method="post" action="process_form.php">
    <input type="hidden" name="checkbox_name" value="0">
    <input type="checkbox" name="checkbox_name" value="1">
    <input type="submit" value="Submit">
</form>
```

In this code snippet, we include a hidden input field with the same name as the checkbox and a default value of 0. This ensures that a value is always submitted for the checkbox, even when it is unchecked. If the checkbox is checked, its value will be submitted as 1.