Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Computer Science Department Web Application and Technologies ( COMP 3 3 4 ) First Semester 2 0 2 3 / 2 0 2 4 Assignment

Computer Science Department
Web Application and Technologies (COMP 334)
First Semester 2023/2024
Assignment 2: Form and Response: use PHP superglobal arrays. Due Date 04/01/2024
This assignment aims to demonstrate the ability to create a data-driven PHP page and to use superglobal arrays.
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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Creating A Database In Filemaker Pro Visual QuickProject Guide

Authors: Steven A. Schwartz

1st Edition

0321321219, 978-0321321213

More Books

Students also viewed these Databases questions

Question

=+A1, A2 ,... such that A ,, has probability p ,.

Answered: 1 week ago