Unit 4

  • Create a Telephone Directory Application to save entries into a single text file.
  • The PHP program will take the data submitted by the form, using string functions, and assemble one record that is written to the file for each Telephone Directory entry that is submitted.
    • 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 process, the file will be opened to ‘read the data’ and list all the items currently in the file.
  • The 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.
 

Add Contact

Please enter the information requested below.

Zip code and phone number fields require numbers only.

First Name:  
Last Name: Area Code:
Street Address: Phone Number:
City: Email Address:
State:  
Zip Code: