Просмотр поста #64615: >>>ВОПРОСЫ НОВИЧКОВ<<<

.
Fublin

Вот как сделать, чтоб при каждой новой записи, текст записывался в новую строку ? А ?

if ((isset($_POST['text'])) and (isset($_POST['text'])) and ($_POST['submit'] == "Отправить"))  
{  
        $file = fopen ("../aforizm/form.txt", "r+"); 
        $str = trim($_POST['text']);  
        if (!$file )  
        {  
    echo("Ошибка открытия файла");  
    }  
    else  
    {  
        fputs ($file, $str);  
    }  
    fclose ($file);  
} 
echo '<form name="form1" action="wrait.php" method="post">'; 
echo '<input name="text" type="text" value="">'; 
echo '<input type="submit" name="submit" value="Отправить">'; 
echo '</form>';