diff --git a/admin/edit.php b/admin/edit.php index 889159e..df49738 100644 --- a/admin/edit.php +++ b/admin/edit.php @@ -12,7 +12,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $newConfig = [ 'examName' => $_POST['examName'], 'message' => $_POST['message'], - 'room' => ' ', + 'room' => $_POST['room'], 'examInfos' => [] ]; @@ -136,6 +136,10 @@ if (!empty($id) && file_exists("../configs/{$id}.json")) { +