-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.php
55 lines (54 loc) · 2.67 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
<?php
require 'connection.php';
session_start();
if(isset($_SESSION['email'])){
header('location: test.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<!-- External CSS -->
<link rel="stylesheet" href="css/style.css" type="text/css">
</head>
<body>
<div>
<br><br>
<div class="container">
<div class="row">
<div class="col-xs-4 col-xs-offset-4">
<h1><b>SIGN UP</b></h1>
<form method="post" action="user_registration_script.php">
<div class="form-group">
<input type="text" class="form-control" name="name" placeholder="Name" required="true">
</div>
<div class="form-group">
<input type="email" class="form-control" name="email" placeholder="Email" required="true" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$">
</div>
<div class="form-group">
<input type="password" class="form-control" name="password" placeholder="Password(min. 6 characters)" required="true" pattern=".{6,}">
</div>
<div class="form-group">
<input type="tel" class="form-control" name="contact" placeholder="Contact" required="true">
</div>
<div class="form-group">
<input type="text" class="form-control" name="city" placeholder="City" required="true">
</div>
<div class="form-group">
<input type="text" class="form-control" name="address" placeholder="Address" required="true">
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary" value="Sign Up">
</div>
</form>
</div>
</div>
</div>
</div>
</body>
</html>