From c70851504652267c95194a98756c6875271cdda7 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Tue, 23 Sep 2025 00:07:35 +0200 Subject: Implement reviews --- "public/omd\303\266men/edit.php" | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 "public/omd\303\266men/edit.php" (limited to 'public/omdömen/edit.php') diff --git "a/public/omd\303\266men/edit.php" "b/public/omd\303\266men/edit.php" new file mode 100644 index 0000000..00b2d3b --- /dev/null +++ "b/public/omd\303\266men/edit.php" @@ -0,0 +1,33 @@ +fetchArray(); + +if ($_SERVER["REQUEST_METHOD"] === "POST") { + $name = $_POST["name"]; + $content = $_POST["content"]; + + query("update reviews set name = ?, content = ? where rowid = ?", $name, $content, $rowid); + + header("HX-Redirect: /omd%c3%b6men/"); + exit; +} + +require "../../include/layout.php"; layout($_); +?> + +
+ + +
+ + +
+ +
-- cgit v1.2.3