make work
This commit is contained in:
parent
aa6b4d4896
commit
74b53af924
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@
|
|||
|
||||
<?php
|
||||
// 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)");
|
||||
fwrite($myfile, $_POST["signature"] . ": " . $_POST["body"] . "<br>");
|
||||
fclose($myfile);
|
||||
|
|
Reference in a new issue