-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
66 lines (63 loc) · 2.96 KB
/
index.php
File metadata and controls
66 lines (63 loc) · 2.96 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
<?php
session_start();
// if user has previously logged in or not, if previous logged in - redirects to users page
if(isset($_SESSION['unique_ID'])){
header("location: users.php");
}
?>
<!-- Main page, registration page - contains register account form -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>PlusSocial</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 id="logo">
<img src="php/images/logo.png" width = "200" height = "200">
</div>
<div class="wrapper">
<div class="containment">
<section class="form signup">
<header> + PlusSocial</header>
<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>
</div>
<div class="field input">
<label>Last name</label>
<input type="text" name="lname" placeholder="Enter last name" required>
</div>
</div>
<div class="field input">
<label>Email address</label>
<input type="text" name="email" placeholder="Enter email" required>
</div>
<div class="field input">
<label>Password</label>
<input type="password" name="password" placeholder="Enter password" required>
<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>
<div class="link">Have an account? <a href="login.php">Login now</a></A></div>
</section>
</div>
</div>
<!-- JS for hide password functionality -->
<script src="javascript/pass-show-hide.js"></script>
<script src="javascript/signup.js"></script>
</body>
</html>