-
Notifications
You must be signed in to change notification settings - Fork 1
/
registration.php
50 lines (44 loc) · 2.12 KB
/
registration.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
<?php
require_once "./helper_php/registration_post.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Registration</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body style="background:#008080;">
<div class="container d-flex flex-column align-items-center justify-content-center w-50" style="height:100vh">
<h1 class="font-weight-bold mb-5 ">Registration Form</h1>
<form action="registration.php" method="POST" class="w-100">
<div class="form-group">
<input type="text" class="form-control" name="username" placeholder="Enter username">
<p style="color:#ffe847; font-weight:600;text-shadow:none">
<?php if (!empty($usernameErrorMassage)) {
echo $usernameErrorMassage;}?>
</p>
</div>
<div class="form-group">
<input type="email" class="form-control" name="email" placeholder="Enter email">
<p style="color:#ffe847;font-weight:600;text-shadow:none">
<?php if (!empty($emailErrorMassage)) {
echo $emailErrorMassage;}?>
</p>
</div>
<div class="form-group">
<input type="password" class="form-control" name="password" placeholder="Password">
<p style="color:#ffe847;font-weight:600;text-shadow:none">
<?php if (!empty($passwordErrorMassage)) {
echo $passwordErrorMassage;}?>
</p>
</div>
<button type="submit" class="btn btn-primary my-2">Registration</button>
<p>Already have account?<a style="color:yellow" class="pl-1" href="/login.php">login</a></p>
</form>
</div>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>