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