Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!