App handles verification of data like checking for valid email syntax and empty fields. This also includes converting the entered email to all lowercase .
After data is verified, the app sends the data to the server side PHP.
Server side PHP checks database for matching email and password before sending account data back.
Note how the login page is not the home page, pressing the back arrow simply kicks the user back to login since no account has been logged into.
The table shown to the right holds student info.
The primary key is the student ID which is auto incremented.
The only data verification cares about is the email and password.
PHP checks for the correct email then checks if the passwords are the same.
Passords are hashed by PHP before being inserted into the table.
The exam will first veify all questions have answers.
Afterwards it shows a quick grade for the exam.
The app then uploads the the user answers using the loaded user account's ID to the server via PHP.
Finally the user is booted back to home.
The results table holds the unique test ID, the student's ID and most notably the user's answers and the answer key for the test.
When displaying results the page, the app calls for PHP to retrive all exams with the matching student ID and then displays all exam entries for that student.