<?php $islem=@$_GET['islem']; ?>
<head>
<style type="text/css">
.style1 {
margin-bottom: 0px;
}
</style>
</head>
<?php if (empty($islem) || $islem!='kaydet') {?>
<form method="post" action="kontrol.php?islem=kaydet" style="height: 43px">
<table style="width: 100%">
<tr>
<td>
<textarea name="mesaj" style="width: 149px; height: 40px" cols="20" rows="1">Haber Başlığı</textarea></td>
</tr>
</table>
<textarea name="mesaj2" style="width: 173px; height: 43px" cols="20" rows="1" class="style1">Haber İçeriği
</textarea><input name="Submit1" type="submit" value="submit"></form>
<?php
}
if ($islem=='kaydet') {
$haber = $_POST["mesaj"];
$haber2 = $_POST["mesaj2"];
$mesaj = "mesaj.php";
$deneme = "<b>".$haber."</b>";
$conn = fopen($mesaj , 'a');
fwrite($conn, $deneme."<br>".$haber2);
fputs($conn, "<br><hr>");
fclose($conn);
}
?>Sanırım böyle bişey istiyordun..