name = $_POST["gameJamName"]; $gameJam->start_time = $_POST["startDate"]."T".$_POST["startTime"]; $gameJam->end_time = $_POST["endDate"]."T".$_POST["endTime"]; $gameJam->description = $_POST["description"]; if($gameJam->save()){ header("location: ../../../Frontend/Html/AdminPage.html?success=UploadedFile"); exit(); } else{ header("location: ../../../Frontend/Html/AdminPage.html?error=FailToSaveGameJam"); exit(); } }else{ header("location: ../../../Frontend/Html/AdminPage.html?error=FailedToMakeGameJam"); exit(); } }else{ header("location: ../../../Frontend/index.html?error=NotAdmin"); exit(); }