-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsignup.php
More file actions
35 lines (30 loc) · 1.14 KB
/
Copy pathsignup.php
File metadata and controls
35 lines (30 loc) · 1.14 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
<?php include 'header.php';?>
<h2>Login Form</h2>
<?php
session_start();
if (isset($_SESSION['error'])):?>
<div class="w3-panel w3-red">
<p><?= $_SESSION['error'] ?></p>
</div>
<?php endif; ?>
<form action="login.php" method="post">
<div class="imgcontainer">
<img src="https://www.w3schools.com/howto/img_avatar2.png" alt="Avatar" class="avatar">
</div>
<div class="container">
<label for="uname"><b>Username</b></label>
<input type="text" placeholder="Enter Username" name="uname" required>
<label for="email"><b>Username</b></label>
<input type="text" placeholder="Enter Email" name="email" required>
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="psw" required>
<button type="submit">Signup</button>
</div>
<div class="container" style="background-color:#f1f1f1">
<span class="psw"><a href="index.php">Login</a></span>
</div>
</form>
<?php
session_unset();
session_destroy();
include 'footer.php';?>