<?php include_once 'classes/database.php'; if (empty($_SESSION['logged_in'])) { header('location:index.php'); } if ($_SESSION['role'] == "employee") { header('location:home.php'); } $flag = false; if (isset($_POST['btn_add_company'])) { $db = new Database(); $info = array('company_name' => $_POST['company_name'], 'address' => $_POST['address'], 'contact_number' => $_POST['contact_number'], 'contact_person_name' => $_POST['contact_person_name']); $response = $db->registerCompany($info); $flag = true; } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Chanchal Garments</title> <link href="assets/css/bootstrap.min.css" rel="stylesheet"> <link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet"> <link href="assets/css/animate.css" rel="stylesheet"> <link href="assets/css/jquery.gritter.css" rel="stylesheet"> <link href="assets/css/style.css" rel="stylesheet"> <link href="assets/css/custom.css" rel="stylesheet"> </head> <body>