Re-LogIn"; } else if(isset($_REQUEST['logout'])) { /************************** Step 2 - Case 1 *************************/ //Log out and redirect login page unset($_SESSION['stdname']); header('Location: index.php'); } else if(isset($_REQUEST['dashboard'])){ /************************** Step 2 - Case 2 *************************/ //redirect to dashboard header('Location: stdwelcome.php'); }else if(isset($_REQUEST['savem'])) { /************************** Step 2 - Case 3 *************************/ //updating the modified values if(empty($_REQUEST['cname'])||empty ($_REQUEST['password'])||empty ($_REQUEST['email'])) { $_GLOBALS['message']="Some of the required Fields are Empty.Therefore Nothing is Updated"; } else { $query="update student set stdname='".htmlspecialchars($_REQUEST['cname'],ENT_QUOTES)."', stdpassword=ENCODE('".htmlspecialchars($_REQUEST['password'],ENT_QUOTES)."','oespass'),emailid='".htmlspecialchars($_REQUEST['email'],ENT_QUOTES)."',contactno='".htmlspecialchars($_REQUEST['contactno'],ENT_QUOTES)."',address='".htmlspecialchars($_REQUEST['address'],ENT_QUOTES)."',city='".htmlspecialchars($_REQUEST['city'],ENT_QUOTES)."',pincode='".htmlspecialchars($_REQUEST['pin'],ENT_QUOTES)."' where stdid='".$_REQUEST['student']."';"; if(!@executeQuery($query)) $_GLOBALS['message']=mysql_error(); else $_GLOBALS['message']="Your Profile is Successfully Updated."; } closedb(); } ?> OES-Edit Profile ".$_GLOBALS['message'].""; } ?>
OES

 Online Examination System

User Name
Password
E-mail ID
Contact No
Address
City
PIN Code