Write a PHP script that lets the user view, insert, and update student information as shown
in Figure Below.
Create a Student Class that holds the student information. The data are stored in a separate
file called "data.in.php" as an association array in which the key is student ID and the value
is the student object. At the beginning initialize the array with at least five student objects.
View: The user sends the student ID to the script, which returns an HTML form filled
with the student's details, which are stored in the student array that has been
initialized in the "data.in.php" file.
Insert: The user sends the student data to the script which instantiates a student
object and inserts it into the student array; but making sure the student is not stored
in the array. If the student stored return an error message to inform the user.
Update: The user sends the new student's information to the script which modifies
the student information in the student array.
Write a PHP script that lets the user view,insert,and update student information as shown
in Figure Below.
-Student Profile: Student ID:
First Name: [
Last Name:
Gender: O Male O Female
Date of Birth: [ad /mm/yyy_C]
Adress:
City:[
Country:
Tel:02-2954367
Update
Clear
Create a Student Class that holds the student information.The data are stored in a separate
file called "data.in.php" as an association array in which the key is student ID and the value
is the student object.At the beginning initialize the array with at least five student objects.
View:The user sends the student ID to the script,which returns an HTML form filled
with the student's details,which are stored in the student array that has been
initialized in the "data.in.php" file.
Insert: The user sends the student data to the script which instantiates a student
object and inserts it into the student array; but making sure the student is not stored
in the array.If the student stored return an error message to inform the user.
Update: The user sends the new student's information to the script which modifies
the student information in the student array