-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSignUp.php
89 lines (83 loc) · 3.28 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!--
Topic: Graded Unit
Student No: 21013159
Student Name: Maximilian Nwosu
School: UHI Inverness
Date: 31 01 23
This file is the Sign Up page that offers the user form to enter registration details..
-->
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="stylesheet.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<script>
function Compute() {
document.getElementById("Password").value = Math.floor(Math.random() * 10000) + 1;
}
function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
</script>
<div class="topnav" id="myTopnav">
<a link rel="Home" href="index.php" class="active">Home</a>
<a link rel="Login" href="Login.php">Login</a>
<a link rel="Contact Us" href="ContactUs.php">Contact Us</a>
<a link rel="About Us" href="aboutUs.php">About Us</a>
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
<i class="fa fa-bars"></i></a>
</div>
<br><br>
<body>
<div class="row">
<div class="column">
<h2>New User Registration</h2><br><br>
<br>
<div class= "Register"><br><br>
<form method="post" action="WriteUser.php"><br><br> <!-- The function to take the form element to another page for entering the details to the Database table -->
<div><label>First Name</label>
<div><input class="form-control" type="text" name="forename" placeholder="Enter your First Name" required> </div>
</div>
<br>
<div><label>Surname</label>
<div><input class="form-control" type="text" name="surname" placeholder="Enter your surname" required> </div>
</div>
<br>
<div><label>Phone Number</label>
<div><input class="form-control" type="text" name="phone_number" placeholder="Enter your Phone Number" required> </div>
</div>
<br>
<div><label>Email</label>
<div><input class="form-control" type="email" name="email" placeholder="Enter your email" required> </div>
</div>
<br>
<div><label>Password</label>
<div><input class="form-control" id="Password" type="text" name="password" placeholder="Enter your password" required> </div>
</div><br>
<div>
<div colspan="4" align=center><input type=button id="Generate Password" value="Generate Password" onClick="Compute()"/><div>
</div>
<br><br>
<input type="reset" value="Clear"/>
<br><br>
<input type="submit" class="btn btn-primary" id="Register" name="Register" value="Register"/>
<br>
</form><br>
</div><br>
</div><br>
</div>
</body><br><br><br><br>
<footer>
<div class="footer">
© Inver Tyre <?php echo date("Y");?>
<p>We deliver excellence in tyre services.</p>
</div>
</footer>
</html>