forked from root/threadr.lostcave.ddnss.de
added an error message for empty posts
parent
e03503cf1b
commit
99790ecb21
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue