-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.php
62 lines (57 loc) · 2.09 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
60
61
62
<?php
session_start();
?>
<?php
if(isset($_SESSION['user'])){
header("Location: profile.php");
}
?>
<html>
<title>signup</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="login_style.css">
<style>
nav ul li a{
color: black;
}
</style>
<body>
<div id="wrapper">
<?php
include 'navbar.php'
?>
<form action='signup.inc.php' method='POST'>
<div class="login" style="padding-top:none">
<p style="line-height:0px; font-size: 38px;">Signup with VELASCA: </p>
<hr style="width:60%; transition: .3s;"> <br> <br>
<?php
if(isset($_GET['error'])){
echo '<p>'. $_GET['error']. '</p>';
}
else if(isset($_GET['signup'])){
echo '<p>'. $_GET['signup']. '</p>';
}
else{
echo '<p> </p>';
}
?>
<input type="text" name="name" id="" placeholder="Name" required> <br>
<input type="number" name="phone" id="" placeholder="Phone Number" required> <br>
<input type="email" name="mail" id="" placeholder="Email" required> <br>
<input type="text" name="uname" id="" placeholder="Username" required> <br>
<input type="password" name="pass" placeholder="Password" required> <br>
<input type="password" name="rpass" id="" placeholder="Retype Password" required> <br> <br> <br> <br>
<button type="submit" name="signup-submit">Register</button>
</div>
</form>
<br> <br> <br> <br>
<?php
include 'footer.php'
?>
</div>
</body>
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous"></script>
<script src="script.js"></script>
<link href="https://fonts.googleapis.com/css?family=Cedarville+Cursive|Karla|Bad+Script|Handlee" rel="stylesheet">
</html>