index.php
<form id="form1" name="form1" method="post" action="inceleme.php">
  <table width="519" height="160" border="0">
    <tr>
      <td>mesaj</td>
      <td><textarea name="mesaj"></textarea></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="Submit" value="gonder" /></td>
    </tr>
  </table>
</form>
<?php


$dosya = "mesaj.php";

$baglan = fopen($dosya, "r") or die ("okunamıyor");
while (! feof($baglan)){
$yazdir = fgets($baglan, 1024);
echo $yazdir;



}

fclose($baglan);

?>


inceleme.php

<?php

$mesajj = $_POST["mesaj"];

$dosya = "mesaj.php";

$baglan = fopen($dosya, "a") or die ("açilmiyor");
fwrite($baglan, $mesajj);
fputs($baglan, "<br>");
fclose($baglan);
header("refresh: 2; url=index.php");
echo "mesajiniz gitti";

?>


yeni bir db dosyası tarzı php dosyası açılacak mesajlar oraya kayıt edilecek

gule gule kullanın