<untitled> (PHP)
Ревизии: current
<?php $file='file.txt'; $fh=fopen($file,"r"); $text=fread($fh,filesize($file)); fclose($fh); ?>
<form method="post" action="">
<textarea name="comm" cols="50" rows="10" ><?php echo $text ?></textarea>
<input type="submit" name="submit">
</form>
<?php $comm=$_POST['comm']; $file='file.txt'; $fs=fopen($file,"w+"); fwrite($fs,$comm); fclose($fs); ?>
Комментарии:
Нет