From 29ba31618821d93533984b426a997bf123d84fbf Mon Sep 17 00:00:00 2001 From: Goldenbwuoy Date: Thu, 11 Nov 2021 12:03:33 +0800 Subject: [PATCH] Add the student ID to session variable when a student signs up --- Script.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Script.php b/Script.php index d7d80f5..92a14fa 100644 --- a/Script.php +++ b/Script.php @@ -75,6 +75,7 @@ if (!empty($_POST["frm_signup_2"])) { $_SESSION['user_fullname'] = $fullname; $_SESSION['user_type'] = "Student"; $_SESSION['user_email'] = $email; + $_SESSION['user_student_id'] = $student_id; // check confirmed password if (strcasecmp($password, $confirmpassword) != 0) {