From f53dfe3798b1f3ba8f92efee7ae21b75ddc62d50 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Fri, 10 Apr 2020 00:38:38 +0800 Subject: [PATCH] fix insert --- htdocs/save.php | 2 ++ 1 file changed, 2 insertions(+) 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);