From 99790ecb212d189cc737d40ddb1f2f377b5e2f95 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Sun, 5 Sep 2021 07:33:49 +0200 Subject: [PATCH] added an error message for empty posts --- threadr/board/submit.php | 1 + 1 file changed, 1 insertion(+) diff --git a/threadr/board/submit.php b/threadr/board/submit.php index 1491265..de1d980 100644 --- a/threadr/board/submit.php +++ b/threadr/board/submit.php @@ -4,6 +4,7 @@ $title=$_POST['title']; $content=$_POST['content']; if ($title==="" || $content==="") { + echo "

Please fill out both the title field and content box.

"; } else { $error = false;