From b2751e3bbd523b971b6101fd23a51a8beb800dc5 Mon Sep 17 00:00:00 2001 From: notfire Date: Thu, 27 Feb 2025 09:00:39 -0500 Subject: [PATCH] sesdrd --- admin/respond.php | 4 ++-- boilerplate/pageStart.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/respond.php b/admin/respond.php index 9badabd..7c208ed 100644 --- a/admin/respond.php +++ b/admin/respond.php @@ -34,7 +34,6 @@ WHERE id = {$id}; $qresp = pg_query($db, $query); $arr = pg_fetch_array($qresp); -$runOnLoad = "document.getElementById(\"passinput\").value = \"" . htmlspecialchars($arr["responsetext"]) . "\""; $properTitle = $pageTitle . " – respond to question #" . $id; include '../boilerplate/pageStart.php'; @@ -61,7 +60,8 @@ if ($arr["ispublic"] === "f") { } else { echo("

enter a response

"); } - echo("

"); + $respTxt = htmlspecialchars($arr["responsetext"]); + echo("

"); } ?> diff --git a/boilerplate/pageStart.php b/boilerplate/pageStart.php index 8bf6eb4..b8139e2 100644 --- a/boilerplate/pageStart.php +++ b/boilerplate/pageStart.php @@ -1,5 +1,5 @@ -echo("" . $properTitle . "") +echo("" . $properTitle . "") ?> \ No newline at end of file