<label style="width: 150px;">Client Valid</label> <select name="client_valid"> <option>True</option> <option>False</option> </select> <br /> <input style="margin-left: 165px;" type="submit" value="Add Client" /> </form> <?php } } elseif ($_GET['do'] == "edit-client") { $websiteProperty = new WebsiteProperty(); echo '<p>On this page you can edit clients.</p>'; if (!empty($_GET['invert']) && is_numeric($_GET['invert'])) { $status = $client->getFieldDataByID($_GET['invert'], "valid"); if ($status !== false) { if ($status == "True") { $status = "False"; } else { $status = "True"; } } if ($client->updateFieldByID($_GET['invert'], "valid", $status)) { echo '<p class="notification green">You have successfully inverted the status of a client.</p>'; $log->addLog($_SESSION['loggedIn']['id'], "Updated a client status."); } else { echo '<p class="notification red">Something went wrong while updating the status of the client.</p>'; } } elseif (!empty($_GET['edit']) && is_numeric($_GET['edit'])) { $showTable = true;