Well my script should looks like that. I have to do it mainly in PHP. Button add should save data to file, show should read that file and put it into textarea, delete have to delete chosen line and reset resets everything.
<?php
$plik =fopen("data.dat","a+");
@fputs($plik, $_POST["name"]. " " . $_POST["sname"] . " " . $_POST["adres"] . " " . $_POST["number"] . "<br>" );
fclose($plik);
?>
<html>
<body>
<form action = "<?php $_PHP_SELF ?>" method = "POST">
Name: <input type = "text" name = "name" /><br>
Second Name: <input type = "text" name = "sname" /><br>
Adres: <input type = "text" name = "adres" /><br>
Number: <input type = "text" name = "number" /><br>
<input type = "submit" name="add" value="Add"/>
<input type = "button" name="show" value="Show"/>
<input type = "button" name="reset" value="Reset"/>
<input type = "button" name="delete" value="Delete"/><br>
<textarea id="lista" name="lista" rows="20" cols="40" style="overflow:scroll" readonly="" wrap="off"></textarea>
</form>
</body>
</html>
My script looks like that and i don't know what should i do next. How to add functions to those buttons and how should they look like?

if(isset($_POST['add'])) {//do something for add buttonetc.}elseif(isset($_POST['show'])){ //do something for show buttonand so on.type="submit". Give them all the same name, and then test the value of the parameter in the PHP script.