diff --git a/htdocs/save.php b/htdocs/save.php index 08067b4..c835406 100644 --- a/htdocs/save.php +++ b/htdocs/save.php @@ -32,6 +32,8 @@ elseif (!empty($_POST['id'])) { } // 新增資料 else { + $title = $_POST['title']; + $content = $_POST['content']; // 修改成功 if ($id = $db->insert($title, $content)) { header('Location: view.php?id='.$id);