<< back | print

<?
$datei = "note.txt";
if ($action!="schreiben"){
?>

<form action="thisfile.php" method="post">
<body bgcolor="#e1e6eb">

<textarea cols="40" rows="18" name="txt">
<? @readfile($datei); ?>
</textarea>

<input type="hidden" name="action" value="schreiben">
<INPUT TYPE="submit" VALUE="save">
</form>
<? } else {

$file =fopen($datei,"w");
fwrite ($file,stripslashes($txt));
fclose($file);
?>

File note.txt saved. <br>
<a href="thisfile.php">Back</a>
<? } ?>
</body >