What is the common issue with checkbox functionality in PHP forms?

The common issue with checkbox functionality in PHP forms is that unchecked checkboxes do not get submitted with the form data. To solve this issue, you can use an array for checkbox inputs in the form and check if the checkbox is checked in the PHP script using the isset() function.

<form method="post" action="submit.php">
  <input type="checkbox" name="colors[]" value="red"> Red<br>
  <input type="checkbox" name="colors[]" value="blue"> Blue<br>
  <input type="checkbox" name="colors[]" value="green"> Green<br>
  <input type="submit" value="Submit">
</form>
```

```php
<?php
if(isset($_POST['colors'])) {
  $selected_colors = $_POST['colors'];
  foreach($selected_colors as $color) {
    echo $color . "<br>";
  }
}
?>