This commit is contained in:
2024-05-09 10:20:54 +08:00
parent 1242d6e633
commit f01cfaec8c
5 changed files with 40 additions and 63 deletions
+7 -4
View File
@@ -12,6 +12,13 @@
<a href="home.php" style="font-family: cursive; color:white; font-size: xx-large; text-decoration: none"> Placeholder</a>
</header>
<div class="login-box">
<?php
session_start();
$ID = $_SESSION['EmployeeID'];
if ($ID == ''){
header("location:index.php");
}
?>
<h2>Shipment Fill-out form</h2>
<form action="insert.php" method="post">
<div class="user-box">
@@ -48,10 +55,6 @@
</html>
<!--The bettah code that I wrote MWAHAHAHA-->
<?php
session_start();
if($_SESSION['EmployeeID'] = ''){
header("location:index.php");
}
define('MYSQL','localhost');
define('USERNAME','root');
define('PASSWORD','');