Question: Create PHP class named User with the following private fields: name, birthdate in yyyy/mm/dd format, age, and department. In the class, include getter and setter
- Create PHP class named "User" with the following private fields:
- name,
- birthdate in yyyy/mm/dd format,
- age, and
- department.
In the class, include getter and setter methods to get and set the values of those variables.
- Author a data entry webform using HTML text input boxes and a submit button. When the user clicks on the submit button, a "User" class is instantiated and the new User object's fields are populated.
- The HTML input boxes correspond to the field in the "User" class.
- Add an "Insert" button that allows the user to insert the form data to a MySQL table.
- Add a "Display" button the displays the contents of your MySQL table on the web form when the end-user clicks on the button.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
