Assignment Your task is to create a customer directory using php. Directory allo

Assignment
Your task is to create a customer directory using php. Directory
allows adding more customers or removing existing ones. Directory also
allows fetching customer information and printing it. Customers are
identified by a customer id number. Depending on the value of parameter
mode, sent as hidden field, different actions can be performed. If the
value is save, a customer is added. If it’s delete,
a customer should be deleted. With any other value the program shows
customer info. If customer id is not found, no printing is done. The
customer information is stored in the file directory.txt
which contains, for each customer, customer id, name and address. Each
of these items are separated with two hash signs and each customer has
their own row. Therefore the file structure is as follows:12345##first customer##someroad 1 54321##second customer##otherstreet 2Forms that are used for deleting customers or retrieving customer information contain the hidden field mode and a text field called customer,
which in turn contains the customer id of the customer whose
information is manipulated. The form to add a new customer looks like
this:

customerid:
name:
address:
     

Leave a comment

Your email address will not be published. Required fields are marked *