$roll = $_POST['roll']; $subject = $_POST['subject']; } ?> <?php if (!empty($error)) { foreach ($error as $single_error) { $message .= $single_error . "<br>"; } } $user->setFname($fname); $user->setLname($lname); $user->setEmail($email); $user->setSession($session); $user->setRoll($roll); $user->setSubject($subject); if ($user->update($id)) { ?> <script>alert("updated successfully");</script> <?php } ?> <?php require 'header/profile_header.html'; ?> <a class = "navbar-brand" href = "#"> Profile </a> </div> <div class="collapse navbar-collapse" id="navbar-collapse">