Update index.php

This commit is contained in:
awesomeuser 2023-08-01 21:01:43 +00:00
parent 058a998ffe
commit eb22930eb7

View file

@ -37,10 +37,11 @@
<hr>
<?php echo $_POST["signature"]; ?>
<br>
<?php echo $_POST["body"]; ?>
<br>
<?php
$myfile = fopen("posts.txt", "r+") or die("Unable to open file!");
fwrite($myfile, $_POST["signature"] + ": " + $_POST["body"] + "<br>");
fclose($myfile);
?>
<?php echo readfile("posts.txt"); ?>
</div>