switch ($mode) { case "color": $color = htmlspecialchars($_GET["color"]); $result = $data->setFilmColor($color); break; case "sound": $sound = htmlspecialchars($_GET["sound"]); $result = $data->setFilmSound($sound); break; case "measurement": $measurement = htmlspecialchars($_GET["measurement"]); $result = $data->setFilmMeasurement($measurement); break; case "color_process": $color_process = htmlspecialchars($_GET["color_process"]); $result = $data->setFilmColorProcess($color_process); break; case "sound_system": $sound_system = htmlspecialchars($_GET["sound_system"]); $result = $data->setFilmSoundSystem($sound_system); break; case "technical_process": $technical_process = htmlspecialchars($_GET["technical_process"]); $result = $data->setFilmTechnicalProcess($technical_process); break; case "add_person": $p_name = htmlspecialchars($_GET["name"]); $p_firstname = htmlspecialchars($_GET["firstname"]); $p_dob = htmlspecialchars($_GET["dob"]); $p_dod = htmlspecialchars($_GET["dod"]); $p_note = htmlspecialchars($_GET["note"]);