This little program uses two files (index.php and store_it.php).
index.php has the form to enter name, telephone and zip code.
store_it.php checks to see if you entered data into all three field.
If you didn't then it sends the data you did enter back to the form.
If you did then it appends the data to a file called "PhoneBook.txt".
Then it reads the data from the file and displays it.
Then it displays another form that can send you back to index.php to enter another name, telephone and zip code.
Please note that there is no error checking in this program other than to see if you have entered a value into each field.
So you will have to add in your own.
I am sure there are many other ways to setup this program,
but it does give you an example of how to 'write to' and 'read from' a file.
index.php
store_it.php