-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.php
81 lines (68 loc) · 2.38 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
<?php
session_start();
?>
<?php
if (!isset($_SESSION['user'])){
header("Location: index.php");
}
?>
<html>
<title>Profile</title>
<link rel="stylesheet" href="profile_style.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="login_style.css">
<body>
<div id="wrapper">
<?php
include 'navbar.php'
?>
<div class ="card card-1">
<h1>
<?php
echo $_SESSION['user'];
?>
</h1>
<span style="font-size: 28px; color: grey; font-weight: 100px">Primary Information</span>
<hr>
<div id="database_details">
<br>
<form action="profile.edit.php" method="POST">
<table>
<tr>
<td>Name:</td> <td><?php echo $_SESSION['user_name'] ;?></td>
</tr>
<tr>
<td>Gender:</td> <td>-<td>
</tr>
<tr>
<td>Date of birth:</td> <td>--/--/--<td>
</tr>
<tr>
<td>Bio:</td> <td>-<td>
</tr>
<tr>
<td>Mobile Number:</td> <td><?php echo $_SESSION['user_phone'] ;?></td>
</tr>
<tr>
<td>Location:</td> <td>-</td>
</tr>
<tr>
<td>Email:</td> <td><?php echo $_SESSION['user_email'] ;?></td>
</tr>
</table>
<br> <br>
<button type="submit" style="width:200px">Edit</button>
</form>
</div>
</div>
<br> <br> <br> <br> <br>
<?php
include 'footer.php'
?>
</div>
</body>
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous"></script>
<script src="script.js"></script>
<link href="https://fonts.googleapis.com/css?family=Cedarville+Cursive|Karla|Bad+Script|Handlee" rel="stylesheet">
</html>