-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.php
More file actions
63 lines (48 loc) · 1.27 KB
/
profile.php
File metadata and controls
63 lines (48 loc) · 1.27 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
<?php
session_start();
include('header.php');
include_once("db_connect.php");
?>
<head>
<link rel="stylesheet" href="css/style.css">
</head>
<?php if ((isset($_SESSION['user_id']) )) { ?>
<div class="main-page">
<div class="form">
<p align="center" class="welcome"><strong>Welcome!</strong> You're signed in as <strong><?php echo $_SESSION['firstname']." ".$_SESSION['lastname']; ?></strong></p>
<fieldset>
<legend>Employee Profile</legend>
<table>
<tr>
<td>UserID</td>
<td><?php echo $_SESSION['user_id']; ?></td>
</tr>
<tr>
<td>First Name</td>
<td><?php echo $_SESSION['firstname']; ?></td>
</tr>
<tr>
<td>Middle Name</td>
<td><?php echo $_SESSION['middle']; ?></td>
</tr>
</tr>
<tr>
<td>Last Name</td>
<td><?php echo $_SESSION['lastname']; ?></td>
</tr>
<tr>
<td>Email</td>
<td><?php echo $_SESSION['email']; ?></td>
</tr>
<tr>
<td>Title</td>
<td><?php echo $_SESSION['title']; ?></td>
</tr>
<tr>
<td>Phone Number</td>
<td><?php echo $_SESSION['primary_phone']; ?></td>
</tr>
</table>
</fieldset>
</div>
<?php } ?>