Unit 5

  • Put a link or button on the telephone directory entry page to execute this new program.
  • Create a PHP program to open the file to read the data.
  • Create an array that contains the name and the phone number. The name should be constructed so that the last name is first, followed by a comma, and then the first name. Example: Smith, John
  • The phone number should contain the area code concatenated to the phone number. Example: 212-398-0987.
  • The array will then be sorted in (last) name order using an appropriate PHP function.
  • The PHP program will present the data in an HTML table with two columns. Column headings will label the columns “name” and “phone number.” The data will be presented in alphabetical order.
  • The response page will also contain a link or button to go back to the HTML form to add additional phone directory entries. All pages in this application should have consistent color, headings, titles, and formatting.
 

Add Contact

Please enter the information requested below.

Zip code and phone number fields require numbers only.

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