added an error message for empty posts

master
BodgeMaster 2021-09-05 07:33:49 +02:00
parent e03503cf1b
commit 99790ecb21
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@
$title=$_POST['title']; $title=$_POST['title'];
$content=$_POST['content']; $content=$_POST['content'];
if ($title==="" || $content==="") { if ($title==="" || $content==="") {
echo "<section><center><h1>Please fill out both the title field and content box.</h1></center></section>";
} }
else { else {
$error = false; $error = false;