Advertisement
matthewenderle

post.php

May 10th, 2016
8,003
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. <?php
  2. session_start();
  3. if(isset($_SESSION['name'])){
  4.     $text = $_POST['text'];
  5.      
  6.     $fp = fopen("log.html", 'a');
  7.     fwrite($fp, "<div class='msgln'>(".date("g:i A").") <b>".$_SESSION['name']."</b>: ".stripslashes(htmlspecialchars($text))."<br></div>");
  8.     fclose($fp);
  9. }
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement