session_start(); if(isset($_SESSION['name'])){ $text = $_POST['text']; $fp = fopen("log.html", 'a'); fwrite($fp, "
".$_SESSION['name']."
: ".stripslashes(htmlspecialchars($text))."
"); fclose($fp); } ?>