Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Server Side: Write the code of the server side register.php page such that. 1) The register.php checks using the regular expressions in PHP if the

Server Side:

Write the code of the server side register.php page such that.

1) The register.php checks using the regular expressions in PHP if the login is valid or not. A valid login must be exactly 7 characters and starts with a letter and followed by any one or more of the characters:_, $, 0-9, A-Z, a-z For instance, a12341, ab_$$1, and abc0Z_ are valid logins while _a1, b9993333*, and c23_@2 are invalid logins. But, there are no restrictions on the password; the user can use any character in the keyboard. if either of the two fields is invalid you must present an alert message and do not send the data to the server side.

2) The register.php page reads the login and passwords of student from a database named "registration" to verify whether the student is a valid user. The registrar password is saved in the register.php document. The " registration" database contains 3 tables named "loginPassword", "student" and courses. The "loginPassword" table has 5 fields: student_Id, "name", "address", "login", "password, and "specialization". Student table has 2 fields: student Id, and course. Student table saves the list of courses for a particular student. courses table has three fields: course name, course ID, and the capacity.

register.php processes the client request by adding a course, removing a course, adding a student, removing a student, student logging in , registrar logging in etc.

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

Step: 3

blur-text-image

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

Bioinformatics Databases And Systems

Authors: Stanley I. Letovsky

1st Edition

1475784058, 978-1475784053

More Books

Students also viewed these Databases questions