-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
44 lines (35 loc) · 1.17 KB
/
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
43
44
<?php session_start();
if(isset($_COOKIE['username'])) {
//header("Location: /php/chat.php");
header("Location: /php/home.php");
}
$current_date = date('Y-m-d H:i:s');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="../css/style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Page</title>
</head>
<body class="body_login">
<form action="/php/login.php" method='POST'>
<div class="imgcontainer">
<img src="/photos/Login.png" alt="Avatar" class="avatar">
</div>
<div style = "width:40%;margin:0 auto;">
<label><b>USERNAME:</b></label>
<input type="text" placeholder="Enter Username" name="username" required>
<br>
<label><b>PASSWORD:</b></label>
<input type="password" placeholder="Enter Password" name="password" required>
<br>
<button class="button-blue" type="submit">Login</button>
<a href = "/pagini_html/signup.html" > <button class="button-blue" type="button">Sign Up</button> </a>
</form>
<input type="checkbox" name="remember" value="save-login">Remember me</input>
</div>
</form>
</body>
</html>