-
Notifications
You must be signed in to change notification settings - Fork 1
/
profile.php
87 lines (61 loc) · 2.8 KB
/
profile.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
<?php require_once("config.php"); ?>
<?php
if(isset($_GET['id'])) {
$query = query("SELECT * FROM users WHERE user_id = " . escape_string($_GET['id']) . " ");
confirm($query);
while($row = fetch_array($query)) {
$username = escape_string($row['username']);
$email = escape_string($row['email']);
$password = escape_string($row['password']);
}
update_user();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Account</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="container">
<?php include("navbar.php") ?>
</div>
<div class="accout-page">
<div class="container">
<div class="row">
<div class="col-2">
<img src="images/image1.png" width="100%">
</div>
<div class="col-2">
<div class="form-container">
<div class="form-btn">
<p>Account</p>
</div>
<form action="" method="post" enctype="multipart/form-data">
<div class="form-group">
<label for="username">Username</label>
<input type="text" name="username" class="form-control" value="<?php echo isset($username)? $username : ""; ?>">
</div>
<div class="form-group">
<label for="email">E-mail address</label>
<input type="text" name="email" class="form-control" value="<?php echo isset($email) ? $email : ""; ?>">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" name="password" class="form-control" value="<?php echo isset($password) ? $password : ""; ?>">
</div>
<div class="form-group">
<input type="submit" name="update_user" class="btn btn-primary pull-right" value="Update" >
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<?php include("footer.php") ?>