The data in <textarea name="textblock"></textarea> is saved in a text file textfile.txt with this script:
<?php // Открыть текстовый файл $f = fopen("title/textfile.txt", "w"); // Записать текст fwrite($f, $_POST["textblock"]); // Закрыть текстовый файл fclose($f); // Открыть файл для чтения и прочитать строку $f = fopen("title/textfile.txt", "r"); // Читать текст echo fgets($f); fclose($f); ?> But at the same time, each new entry overwrites the previous one. How to register so that each new entry occurs in a new file (1.txt, 2.txt, 3.txt, ...)?
$_POST["textblock"]? - Johny