//Haal bandleden op $bandmembers = $bandsusers->getBandMembers($id); $remainingMembers = $bandsusers->getAllMembers($id); //Haal video's op $video = $bandsmusic->getVideo($id); //Check of er POST waarde is if ($_SERVER['REQUEST_METHOD'] === 'POST') { //Valideer post attr van info form if (!empty($_POST['info_submit'])) { if ($_POST && isset($_POST['naam'], $_POST['website'], $_POST['woonplaats'], $_POST['telefoon'], $_POST['genre'])) { $naam = test_input($_POST['naam']); $website = test_input($_POST['website']); $woonplaats = test_input($_POST['woonplaats']); $telefoon = test_input($_POST['telefoon']); $genre = test_input($_POST['genre']); $band_new = $bands->edit($id, $naam, $genre, $woonplaats, $website, $telefoon); if ($band_new) { ?> <script> $.notify("Evenement is aangepast", "success"); </script> <?php } else { ?> <script> $.notify("Evenement kon niet worden aangepast", "error"); </script> <?php } $band = $bands->get($id); } else {