Need help with this php I'm like totally lost on how to code this out..?

rose34ll2

New member
I have to create a Telephone Directory Application to save entries into a single text file. Your HTML form will collect the following data items:
1. Last Name
2. First Name
3. Street Address
4. City
5. State
6. Zip
7. Area code
8. Phone Number
Your PHP program will take the data submitted by the form, using string functions assemble one record to be written to the file for each Telephone Directory entry that is submitted.
The data will be written in a comma delimited line of information terminated by a new line character and will be appended to the telephone data file. When multiple entries have been made to the form, the file should contain all the stored items on separate lines.
Be sure to ‘close’ the file when the data has been written.
In a new program you will open the file to ‘read the data’ and list all the items currently in the file. Your PHP program will present the data in a format that is easily readable, not in the manner it was ‘stored’. Provide a link or button to ‘run’ this program on the HTML form page.
I don't want anyone to solve the php for me just need someone to give me a example of how to lay this out...
 
Back
Top