session_cache_limiter('private, must-revalidate'); session_start(); include"../../../dsn/conn.php"; $userId=$_SESSION["userId"]; $loginid=$_SESSION["loginid"]; if(!isset($userId)) header("Location: ../../../css/employer/profile/newaccount.php?a=displayLogin"); $display_sql= "select count(*) as COUNT from CSS_APP_GENERAL where CSS_APPLICANT_ID=$userId"; $rpos=OCIParse($conn,$display_sql); OCIExecute($rpos); OCIFetchInto($rpos,$disarr,OCI_ASSOC); $iocoount=$disarr["COUNT"]; if($iocoount==0) header("Location: ../profile/applicationdetail.php?a=Add&aid=$userId"); if(count($_POST)){ foreach ($HTTP_POST_VARS as $key => $value) { $$key = $value; } } $a=$_REQUEST["a"]; switch (@$a) { case "Save & add another course": insert_data($conn,1); break; case "Save & move to next section": insert_data($conn,2); ?> break; default: displayform(); } function displayform() { global $conn,$temp; ?>
| include("../include/top.php"); ?> | ||||
|
||||