-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsignup.php
59 lines (52 loc) · 2.07 KB
/
signup.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/*
//===================================================================================================
// File: signup.php
// Description: This file is the signup page of our website.
//===================================================================================================
*/
session_start();
$requestMethod = strtoupper(getenv('REQUEST_METHOD'));
if ($requestMethod == 'POST')
{
if (isset($_POST['signup'])) {
require 'db.php';
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title> Sinkd - Sign Up </title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css">
<link rel="stylesheet" href="css/signup.css">
</head>
<body class="body">
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="#"><img src="assets/logo.png" width="30" height="30" class="d-inline-block align-top" alt=""> Sinkd </a>
</nav>
<div class="container">
<div class="card" id="wrapper">
<div class="card-body">
<h1 class="text-center" id="header">Drop anchor with us!</h1>
<form action="signup.php" method="post" autocomplete="off">
<input type="text" class="form-control" placeholder="Name" name="displayname" required>
<br>
<input type="text" class="form-control" placeholder="Username" name="username" required>
<br>
<input type="password" class="form-control" placeholder="Password" name="password" required>
<br>
<input type="password" class="form-control" placeholder="Confirm Password" name="confirmpassword" required>
<br>
<button type="submit" name="signup" class="btn btn-success" id="loginButton">Create</button>
<input type="hidden" name="page" value="signup">
</form>
<p class="text-center" id="join">Already a member? <a href="login.php">Sign in</a>
</p>
</div>
</div>
</div>
</body>
</html>