-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelete1.php
More file actions
67 lines (67 loc) · 1.72 KB
/
delete1.php
File metadata and controls
67 lines (67 loc) · 1.72 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
<html>
<head>
<title>Delete User</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="jquery/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<style>
body{background-image:url("images/1.jpg");}
html,body{height:100%;}
.container{height:100%;}
footer{
background-color:#000000;
color: white;
padding: 10px;
position:fixed;
bottom:0;
left:0;
right:0;
}
header{
background-color:#000000;
color:#ffffff;
height:80px;
}
table{
color:#ffffff;
}
button{
width:90px;
}
</style>
<header class="container-fluid">
<img src="images/logo.png" height="70" style="display:inline-block; float:left;" >
<h1 align="center">Web Based Reporting Portal</h1>
</header>
<div class="container" style="width:60%;opacity: 0.85;background-color:#000000;color:#ffffff;">
<?php
include 'db.php';
session_start();
$userid1 = $_POST['userid'];
$password1=$_POST['password'];
$userid3 = $_POST['userid2'];
$sql = "delete from user where userid = '".$userid3."'";
$query=mysql_query($sql);
if(!$query)
echo"Failed"."<br>".mysql_error();
else
{
?>
<h2 text align = "center"><?php echo"User Deleted Successfully"?></h2>
<?php
}
?>
<form action ="login1.php" method="POST">
<br>
<center><button type="submit" class="btn btn-danger">Back</button></center>
<input type="hidden" name="userid" value="<?php echo $userid1?>" >
<input type="hidden" name="password" value="<?php echo $password1?>" >
</form>
</div>
<footer class="container-fluid text-center">
<p style=" font-size:100%;">All rights reserved copyright © 2017 Designed By: Dhananjay Gambhir</p>
</footer>
</body>
</html>