Update index.php
This commit is contained in:
parent
ba6f448566
commit
aa6b4d4896
1 changed files with 3 additions and 4 deletions
|
@ -40,11 +40,10 @@
|
|||
<?php
|
||||
// write to file
|
||||
if (!is_null($_POST["body"])) {
|
||||
|
||||
}
|
||||
$myfile = fopen("posts.txt", "a") or die("Unable to open file! (a)");
|
||||
fwrite($myfile, $_POST["signature"] . ": " . $_POST["body"] . "<br>");
|
||||
fclose($myfile);
|
||||
}
|
||||
|
||||
// read from file
|
||||
$myfile = fopen("posts.txt", "r") or die("Unable to open file! (r)");
|
||||
|
|
Reference in a new issue