ÿþ<?php $plik = 'baza.txt'; if(isset($_POST['tresc'])){ file_put_contents($plik, file_get_contents($plik)."\n".$_POST['tresc']); } echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post"> <textarea name="tresc">'.file_get_contents($plik).'</textarea> <input type="submit" value="Zapisz"> </form>'; ?>