idToField($cfg_tableprefix.'users','customerID',$_SESSION['session_user_id']); $field_data=array("$_GET[switchID]", "$tdin", "Mechanic"); $dbf->insert($field_names, $field_data, $tablename, ""); } if($isAdmin){ header('Location: /pos/login.php'); }else{ header('Location: /pos/home.php'); } ?>