<?php
$file=fopen('content.txt','w');
fputs($file,$_POST['content']);
fclose($file);
?>
<form method="post" action="a.php">
<textarea rows="20" cols="80" name="content">
</textarea><input type="submit" value="Сохранить">
</form>