// Empty first header cell.
        foreach ($this->backgroundColor as $col) {
            echo "<th> {$col} <br /> color </th>";
        }
        echo "</tr>";
        // Third, set the rows.
        foreach ($this->textColor as $row) {
            echo "<tr>";
            echo "<th> {$row} <br /> text </th>";
            for ($i = 0; $i < count($this->backgroundColor); $i++) {
                echo "<td style=\"color:{$row}\"> {$row} </td>";
            }
            echo "</tr>";
        }
        echo "</table>";
    }
}
if (isset($_GET['submit'])) {
    if (empty($_GET['backgroundColor']) || empty($_GET['textColor'])) {
        echo "Error: You have not selected a text or background color. Please reselect.";
    } else {
        $newColor = new colorChanger($_GET['backgroundColor'], $_GET['textColor']);
        $newColor->changeColor();
    }
} else {
    $defaultForm = new formCreater();
    echo $defaultForm->content();
}
?>
</body>
</html>