-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshow.php
40 lines (35 loc) · 828 Bytes
/
show.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
<?php
session_start();
$id = $_GET['id'];
$fname = $_SESSION['All-data'][$id]['fname'];
$lname = $_SESSION['All-data'][$id]['lname'];
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Show page</title>
</head>
<body>
<a href="index.php">back to Index page.</a>
<table border="1">
<thead>
<tr>
<th>ID</th>
<th>First Name</th>
<th>Last Name</th>
</tr>
</thead>
<tbody>
<tr>
<td><? echo $id; ?></td>
<td><? echo $fname; ?></td>
<td><? echo $lname; ?></td>
</tr>
</tbody>
</table>
</body>
</html>