throw an alert if no data is entered

This commit is contained in:
awesomeuser 2023-08-04 16:18:01 +00:00
parent 634df4995f
commit 67f13ba616

View file

@ -23,6 +23,8 @@
$myfile = fopen("posts.txt", "w") or die("Unable to open file!");
fwrite($myfile, $content);
fclose($myfile);
} else {
echo '<script>alert("Please draw something.")</script>';
}
?>