make work

This commit is contained in:
awesomeuser 2023-08-01 21:24:15 +00:00
parent aa6b4d4896
commit 74b53af924

View file

@ -39,7 +39,7 @@
<?php <?php
// write to file // write to file
if (!is_null($_POST["body"])) { if (!is_null($_POST["body"]) && strlen($_POST["body"]) != 0) {
$myfile = fopen("posts.txt", "a") or die("Unable to open file! (a)"); $myfile = fopen("posts.txt", "a") or die("Unable to open file! (a)");
fwrite($myfile, $_POST["signature"] . ": " . $_POST["body"] . "<br>"); fwrite($myfile, $_POST["signature"] . ": " . $_POST["body"] . "<br>");
fclose($myfile); fclose($myfile);