forked from anirban0328/Restaurant-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
42 lines (29 loc) · 779 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
session_start();
if(isset($_SESSION[username]))
{
session_destroy();
}
?>
<html>
<head>
<title> my webpage</title>
<link href="stylesheets/main.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>STARLIGHT RESTAURANT</h1>
<h2>ONLINE MANAGEMENT SYSTEM</h2>
<?php include("javascript/validate.php"); ?>
<div id="login">
<form id="c" action="mainpage.php" method="post" onsubmit="return validate()" >
USERNAME: <input type="text" name="username" value="" id="username" />
<br /><br />
PASSWORD:<input type="password" name="pass" value="" id="pass"/>
<br />
<pre> <input type="submit" name="login" value="Login" /> </pre>
</form>
</div>
</body>
</html>
</body>
</html>