0% found this document useful (0 votes)
46 views

PHP Assignment 5 Web MVC

The document provides instructions to edit a PHP email application to manage users according to the following requirements: 1. Create a list_user.php page to display a list of all users with their email, first name, and last name. 2. Add a search function to list_user.php that allows searching by email, first name, or last name and passes search terms to the user_controller.php. 3. Add edit and delete links to each user record to allow editing or deleting a user from the database. 4. The edit_user.php page should display a user's information populated from the database and allow editing details except email. Saving updates the database. 5. Clicking
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

PHP Assignment 5 Web MVC

The document provides instructions to edit a PHP email application to manage users according to the following requirements: 1. Create a list_user.php page to display a list of all users with their email, first name, and last name. 2. Add a search function to list_user.php that allows searching by email, first name, or last name and passes search terms to the user_controller.php. 3. Add edit and delete links to each user record to allow editing or deleting a user from the database. 4. The edit_user.php page should display a user's information populated from the database and allow editing details except email. Saving updates the database. 5. Clicking
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment for PHP Web MVC

ASSIGNMENT FOR MVC -2

Edit Email application in assignment 4 to manage users by below requirements:


1. Create a list_user.php to list all user to screen.
LIST OF USERS
Email FirstName LastName
[email protected] An Nguyen
[email protected] Binh Le
[email protected] Trang Tran

2. Add a search function that permit user search by first name, last name or email.
When Search button is clicked, the search string will be passed to the
user_controller.php which will get data and return to the list_user.php.
LIST OF USERS
Enter your email, first name or last name Search

Email FirstName LastName


[email protected] An Nguyen
[email protected] Binh Le
[email protected] Trang Tran

3. Add the edit and delete link to the list to permit user can edit or delete a user.
LIST OF USERS
Enter your email, first name or last name Search

Email FirstName LastName Actions


[email protected] An Nguyen Edit Delete
[email protected] Binh Le Edit Delete
[email protected] Trang Tran Edit Delete

1
iViettech Education
Professional Programmer Training Center

4. When user click on edit link, the email of user on row is sent to controller,
controller is get user information and send to edit_user.php which will display user
information and permit user edit the information except email field. After edit, user
click save button, the data will be save to the database.
EDIT USER PAGE
Email: [email protected]
First Name: An
Last Name: Nguyễn
Save Cancel

5. When user click on delete link the user in this row will be deleted from database
and then update to the list.

Model
database.php
user_db.php
Controller
user_controller.php

View
user_list.php
edit_user.php
database_error.php

Figure 2. MVC Diagram

2
92-Quang Trung –Da Namg. Tel: 05113.888 279

You might also like