Question: I need help creating this, using php please. You should create an online contacts directory application that saves entries to a single text file. Include
I need help creating this, using php please.
You should create an online contacts directory application that saves entries to a single text file. Include standard contact directory fields in the text file such as first name, last name, email address, phone number, street address, city, state, and zip code. You will want to plan how to save this data to the file for easy retrieval. Hint: Your textbook may provide helpful insights.
As part of your application, one web page will serve as a main directory, where you can search and retrieve records along with a document that allows you to add contacts. You should have another web page that you can use to edit contacts. All pages should allow the user to return to the main directory.
Below is an example of the main directory output you should have before formatting:

Whether a user is searching, adding a new entry, or updating an existing contact you should verify that they have entered a value in each field. If the have not, then you should indicate this to them via server- side scripting. When an entry has been successfully saved or updated then you should tell the user. If a search, save, or update was not successful then you should indicate this to the user. You should also alert the user if the text file containing the contacts does not exist.
On the next page is an example of one of the error outputs you should have before formatting:

On each entry form, the state field must be set up using a
Below is an example of the edit entry and add entry output you should have before formatting:


Whenever you are writing data to the file, you should appropriately lock the file to prevent a mismatch of data being saved. If the file cannot be locked then you should alert the user to retry submitting the form in
a few moments as other updates are being performed. Constants should be used for values that do not change, and variables for values that change during the course of execution. You should include Last Modified Date information on your page. This should be provided dynamically by using the built-indate()function within the getlastmod()function.
At the point of final submission, your application should be laid out in the Lab Content area of your web site. When laying out your web page, you should retain the common navigation and structural components (header and footer) of your website even though not shown in the image. This will require you to incorporate the SSI file references in this lab assignment as you did on previous the lab assignment. SSI files should not be moved but rather you should provide the path to their original file location. The common navigation and structural components should present visual continuity across all the web pages of your website and should not shift at all when going from web page to web page. In addition, while the image does not demonstrate this, you need to include a working link on each page to get back to your home page. Each page of the assignment should load into the Lab Content area only.
Online Contacts Directory + Q Search Google or enter an address C Reader Online Contacts Directory Search for a Contact First Name Daniel Last Name Carrison Search Add New Contact Entry 000 Online Contacts Directory + Search Google or enter an address c Reader You must enter a value in each field. Click your browser's Back button to return to the form. Return to Directory 000 Online Contacts Directory + Q Search Google or enter an address c Reader First Name Daniel Last Name Garrison Email Address dgarriso@gmu.edu Phone Number 856-555-1212 Address 12 West Ave City Westover State Alabama Zip N Update Entry Return to Directory Online Contacts Directory E Q Search Google or enter an address C Reader New Contact Entry First Name Grace Last Name Wu Email Address gwu@gmu.edu Phone Number 703-555-1212 Address 4400 University Dr City Fairfax State Virginia Zip 220301 Add Entry Online Contacts Directory + Q Search Google or enter an address C Reader Online Contacts Directory Search for a Contact First Name Daniel Last Name Carrison Search Add New Contact Entry 000 Online Contacts Directory + Search Google or enter an address c Reader You must enter a value in each field. Click your browser's Back button to return to the form. Return to Directory 000 Online Contacts Directory + Q Search Google or enter an address c Reader First Name Daniel Last Name Garrison Email Address dgarriso@gmu.edu Phone Number 856-555-1212 Address 12 West Ave City Westover State Alabama Zip N Update Entry Return to Directory Online Contacts Directory E Q Search Google or enter an address C Reader New Contact Entry First Name Grace Last Name Wu Email Address gwu@gmu.edu Phone Number 703-555-1212 Address 4400 University Dr City Fairfax State Virginia Zip 220301 Add Entry
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
