added an error message for empty posts
parent
e03503cf1b
commit
99790ecb21
|
@ -4,6 +4,7 @@
|
|||
$title=$_POST['title'];
|
||||
$content=$_POST['content'];
|
||||
if ($title==="" || $content==="") {
|
||||
echo "<section><center><h1>Please fill out both the title field and content box.</h1></center></section>";
|
||||
}
|
||||
else {
|
||||
$error = false;
|
||||
|
|
Loading…
Reference in New Issue