// $auth->creatprofile($fname, $lname, $mname, $regno, $entryYear, $dateOfBirth, $gender, $email, $phone, $address, $username, $password,$family, $passport); //header('Location:e-learning.com/?view=register&feedback=Thank you for registering'); } //header('location:../?view=registerView&feedback='.urlnecode('Thank you for registering! Do you want to <a href="/">Login</a>')); // header('Location:../?view=register&feedback=Thank you for registering\nDo you wantn to <a href="/">Login</a>'); //this code is used for evaluation if (isset($_POST["config"])) { $user_id = $_SESSION['user_id']; $qCount = htmlentities(htmlspecialchars($_POST["qCount"])); $qCat = htmlentities(htmlspecialchars($_POST["qCategory"])); $qStyle = htmlentities(htmlspecialchars($_POST["qStyle"])); $qTime = htmlentities(htmlspecialchars($_POST["qTime"])); $evaluation = new Evaluation(); //check if user has configured evaluation before if true, reset values, else configure new values //$evaluation->configureEValuation($user_id, $qCount, $qCat, $qStyle, $qTime); echo $evaluation->startEvaluation($user_id, $qCount, $qCat, $qStyle, $qTime); } if (isset($_POST["continueEval"])) { $evaluation = new Evaluation(); $user_id = $_SESSION['user_id']; $currentCount = htmlentities(htmlspecialchars($_POST["currentCount"])); $currentCatName = htmlentities(htmlspecialchars($_POST["currentCatName"])); $currentId = htmlentities(htmlspecialchars($_POST["currentqId"])); $currentTime = htmlentities(htmlspecialchars($_POST["currentTime"])); $option = htmlentities(htmlspecialchars($_POST["option"])); $correctAns = htmlentities(htmlspecialchars($_POST["correctAns"])); //initial $qCount = htmlentities(htmlspecialchars($_POST["qCount"])); $qCat = htmlentities(htmlspecialchars($_POST["qCat"])); $qStyle = htmlentities(htmlspecialchars($_POST["qStyle"])); $qTime = htmlentities(htmlspecialchars($_POST["qTime"]));