-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
83 lines (82 loc) · 4.01 KB
/
index.php
File metadata and controls
83 lines (82 loc) · 4.01 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
// session_start();
// // if user has previously logged in or not, if previous logged in - redirects to users page
// if(isset($_SESSION['userid'])){
// header("location: chat.php");
// }
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="true">
<title>Registration page</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css"/>
</head>
<body>
<div class="wrapper">
<div class="container">
<div class="navigation-bar">
<div class="light-dark-toggle">
<label class="switch">
<input type="checkbox" id="light-dark-toggle" checked>
<span class="slider round"></span>
</label>
</div>
</div>
<div class="form-window">
<h1>Register account</h1>
<div class="form-frame">
<section class="form signup">
<form action="#" enctype="multipart/form-data">
<div class="error-txt"></div>
<div class="name-details">
<div class="field input">
<label>First name</label>
<input type="text" name="fname" placeholder="Enter first name" required autocomplete="off">
</div>
<div class="field input">
<label>Last name</label>
<input type="text" name="lname" placeholder="Enter last name" required autocomplete="off">
</div>
</div>
<div class="field dob input">
<label>Date of birth</label>
<input type="date" name="dob" id="dob" required>
</div>
<div class="field input">
<label>Email address</label>
<input type="text" name="email" placeholder="Enter email" required>
</div>
<div class="field password input">
<label>Password</label>
<input type="password" name="password" id="password" placeholder="Enter password" required autocomplete="off">
<i class="fas fa-eye"></i>
</div>
<div class="field repassword input">
<label>Re-enter password</label>
<input type="password" name="repassword" id="repassword" placeholder="Re-enter password" required autocomplete="off">
<i class="fas fa-eye"></i>
</div>
<div class="field image">
<label>Profile image</label>
<input type="file" name="image" required>
</div>
<div class="field button">
<input type="submit" value="Start chatting!">
</div>
</form>
</section>
<div class="link">Have an account? <a href="login.php">Login now</a></A></div>
</div>
</div>
</div>
</div>
<script src="./javascript/light-dark-mode.js"></script>
<script src="javascript/password-show-hide.js"></script>
<script type="module" src="javascript/signup.js"></script>
</body>
</html>