-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdelete1.php
61 lines (50 loc) · 845 Bytes
/
delete1.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
<?php
include('connection.php');
if($login_session!='ADMIN')
header("location: index.php");
?>
<html>
<head>
<title>
Home
</title>
<script>
function validateForm()
{
var x=document.forms["myForm"]["roll"].value;
if (x==null || x=="")
{
alert("Form must be filled out completelty.");
return false;
}
}
</script>
</head>
<body>
<style>
h1 {
color:red;
font-family:verdana;
font-size:200%;
}
h2 {
color:blue;
font-family:verdana;
font-size:100%;
}
p {
color:black;
font-family:courier;
font-size:100%;
}
</style>
<h1 style="text-align:center">
IIT Mandi
<h2>Enter the Username:</h2>
<form name="myForm" action="delete.php" onsubmit="return validateForm()" method="post">
Username: <input type="text" name="username">
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>