Update index.php

This commit is contained in:
awesomeuser 2023-08-01 21:02:53 +00:00
parent eb22930eb7
commit 03d3e53e23

View file

@ -38,7 +38,7 @@
<hr> <hr>
<?php <?php
$myfile = fopen("posts.txt", "r+") or die("Unable to open file!"); $myfile = fopen("posts.txt", "w") or die("Unable to open file!");
fwrite($myfile, $_POST["signature"] + ": " + $_POST["body"] + "<br>"); fwrite($myfile, $_POST["signature"] + ": " + $_POST["body"] + "<br>");
fclose($myfile); fclose($myfile);
?> ?>