document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <!doctype html>
  2. <html>
  3. <body>
  4.     <form action="/" method="POST">
  5.         Post Comment: <br>
  6.         <input type="text" style="width: 300px;" name="comment">
  7.         <input type="submit">
  8.     </form>
  9.     <br>
  10.  
  11.  
  12. <?php
  13.     if(isset($_POST["comment"]))
  14.     {
  15.         $comment = $_POST["comment"];
  16.  
  17.         if(file_exists("comments.txt"))
  18.         {
  19.             $comments = file_get_contents("comments.txt");
  20.             $comments = $comments . $comment;
  21.             file_put_contents("comments.txt", $comments);
  22.             echo htmlentities(file_get_contents("comments.txt"));
  23.         }
  24.         else
  25.         {
  26.             file_put_contents("comments.txt", $comment);
  27.             echo htmlentities(file_get_contents("comments.txt"));
  28.         }
  29.     }
  30. ?>
  31.  
  32. </body>
  33. </html>
');