-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparams.php
More file actions
101 lines (87 loc) · 3.04 KB
/
params.php
File metadata and controls
101 lines (87 loc) · 3.04 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
<?php
require '../connexion.php';
$requete = "SELECT
`user_id`,
`username`,
`email`,
`password`
FROM
`user`
WHERE
`user_id` = :user_id
;";
$stmt = $conn->prepare($requete);
$stmt->bindValue(':user_id', $_GET['user_id']);
$stmt->execute();
$row = $stmt->fetch(PDO::FETCH_ASSOC);
?>
<!DOCTYPE html>
<html>
<head>
<title>Index • Fruity Motion</title>
<meta charset="utf-8">
<meta value="notranslate" name="google">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" name="viewport">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/grid.css">
<!--[if gte IE 9]
<style type="text/css">
.gradient {
filter: none;
}
</style>
<![endif]-->
</head>
<body>
<?php include "header.php"; ?>
<form action="./change.php" method="post" class="app_content">
<ul class="grid-container settings">
<li>
<h2>Profil</h2>
</li>
<input type="hidden" name="user_id" value="<?=$row['user_id']?>">
<li>
<label for="username">User name</label>
<div><input type="text" name="username" value="<?=$row['username']?>"></div>
</li>
<li>
<label for="about">About you</label>
<div><textarea name="about" placeholder="About you"></textarea></div>
</li>
<li>
<label for="location">Avatar</label>
<div><input type="file" name="avatar" value=""></div>
</li>
<li>
<label for="website">Website</label>
<div><input type="text" name="website" placeholder="http://"></div>
</li>
</ul>
<ul class="grid-container settings">
<li>
<h2>Basic Info</h2>
</li>
<li>
<label for="email">Email adress</label>
<div><input type="email" name="email" value="<?=$row['email']?>"></div>
</li>
<li>
<label for="email">Password</label>
<div><input type="password" name="password"></div>
</li>
</ul>
<div class="grid-container settings">
<button class="btn-default">Delete account</button>
<div class="right">
<button class="btn-default">Cancel</button>
<button type="submit" class="btn-submit">Save settings</button>
</div>
</div>
</form>
<footer>
MotionBook © 2014 • Designed & developed with love by Kevin Manssat
</footer>
<script src="js/jquery.js"></script>
<script src="js/salvattore.min.js"></script>
</body>
</html>