- <?php
- include 'config.php';
- include 'con.php';
- $workerID = $_POST['workerID'];
- #get the role
- $sql = "SELECT ROLE_ID FROM DTC_WORKER_ROLE WHERE WORKER_ID = '{$workerID}'";
- $rolle = sqlStm($sql)['ROLE_ID'][0];
- if ($rolle == 2) {
- header("Location: ".$ip."PHP/forms/MAB.html?workerID=".$workerID);
- } else if ($rolle == 1){
- header("Location: ".$ip."PHP/forms/VORMA.html?workerID=".$workerID);
- }
- #header("Location: http://192.168.20.211:8080/PHP/forms/DTC.html");
- ?>
|