-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.php
66 lines (55 loc) · 1.54 KB
/
user.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
<?php
session_start();
include 'connect.php';
$currentpageopened=basename($_SERVER['REQUEST_URI'], '?' . $_SERVER['QUERY_STRING']);
if(!isset( $_SESSION['logged']) && empty($_SESSION['logged']))
{
header('location:index.php');
}
if(isset($_GET['LogOUT']))
{
session_destroy();
header('location:index.php');
}
$user="select * from formdetail where email='".$_SESSION['logged']."'";
$get=$connection->query($user);
$row=$get->fetch_array();
extract($row)
?>
<html>
<head>
<title>Form</title>
</head>
<body>
<section class="col-md-12">
<div class="col-md-6" style=" padding-top:50px" align="center" >
<table border="1">
<tr style="background-color:DC8179">
<th>Id</th>
<th>Name</th>
<th>Middle Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Mobile</th>
<th>Password</th>
<th>Confirm Password</th>
<th>Operation</th>
</tr>
<tr>
<td><?php echo $id;?></td>
<td><?php echo $name;?></td>
<td><?php echo $mname;?></td>
<td><?php echo $lname;?></td>
<td><?php echo $email;?></td>
<td><?php echo $mobile;?></td>
<td><?php echo $password;?></td>
<td><?php echo $cpassword;?></td>
<td><a style="width:50px; height:20px; " href="registration.php?id=<?php echo $id;?>" name="Edit">EDIT</a>
<a style="width:50px; height:20px; " href="registration.php?idd=<?php echo $id;?>" name="delete" >Delete</a> </td>
</tr>
<table><br><br>
<a href="index.html?LogOUT">Log Out</a>
</div>
</section>
</body>
</html>