<!DOCTYPE html> <?php include "data.php"; $msg = ""; $control = new jobs(); if (!empty($_POST['login'])) { header('Location: Login.php'); } if (!empty($_POST['register'])) { if ($_POST['company'] != '' && $_POST['username'] != '' && $_POST['password']) { if ($_POST['password'] == $_POST['confirm_password']) { $cdetails = array(); $cdetails[0] = $_POST['company']; $cdetails[1] = $_POST['username']; $cdetails[2] = $_POST['password']; $msg = $control->addemployee($cdetails); header('Refresh: 1;Location: Login.php'); } else { echo "<script>alert('Password Do not match Try Again')</script>"; } } else { echo "<script>alert('Please Fill all the entries')</script>"; } } ?> <html lang='en'> <head> <meta charset="UTF-8" /> <title> Employee SignUp