Add the student ID to session variables when a student signs up #25

Merged
mrlan merged 1 commits from bug312-Golden into master 2021-11-12 08:33:29 +08:00
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ if (!empty($_POST["frm_signup_2"])) {
$_SESSION['user_fullname'] = $fullname; $_SESSION['user_fullname'] = $fullname;
$_SESSION['user_type'] = "Student"; $_SESSION['user_type'] = "Student";
$_SESSION['user_email'] = $email; $_SESSION['user_email'] = $email;
$_SESSION['user_student_id'] = $student_id;
// check confirmed password // check confirmed password
if (strcasecmp($password, $confirmpassword) != 0) { if (strcasecmp($password, $confirmpassword) != 0) {