-
Notifications
You must be signed in to change notification settings - Fork 0
/
updateusername.php
59 lines (58 loc) · 2.23 KB
/
updateusername.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
session_start();
if(!isset($_SESSION['id'])){
header('Location:login.php');
}
include 'functions/database.php';
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Job Board|For Job Seekers and Employers</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
</head>
<body>
<?php include 'includes/navigation.php';?>
<div class="container-fluid bg-light py-4">
<div class="row">
<div class="col-md-12 text-center">
<h4 style="text-transform:uppercase;font-weight:bold;">Change Username</h4>
<h4>You can only post jobs after you become a member</h4>
</div>
</div>
<div class="row my-5">
<div class="col-md-6 mx-auto">
<div class="card card-body shadow border border-dark">
<div class="my-2">
<?php include 'functions/updateusername.php';?>
</div>
<form action="updateusername.php" method="post">
<div class="my-3">
<label for="email">Current Email Address</label>
<div class="input-group">
<span class="input-group-text"><i class="bi bi-envelope"></i></span>
<input type="text" name="email" class="form-control border border-dark" placeholder="Current Email Address"/>
</div>
</div>
<div class="my-3">
<label for="username">New Username</label>
<div class="input-group">
<span class="input-group-text"><i class="bi bi-person"></i></span>
<input type="text" name="username" class="form-control border border-dark" placeholder="New Username"/>
</div>
</div>
<div class="my-2">
<button type="submit" name="submit" class="btn btn-lg btn-outline-primary">Save New Username Now</button>
</div>
</form>
</div>
</div>
</div>
</div>
<?php include 'includes/footer.php'; ?>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
</body>
</html>