-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdie.php
31 lines (30 loc) · 889 Bytes
/
die.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<?php
$username = "panhara";
$password = "12345";
if (isset($_POST['submit'])) {
if (empty($_POST['username'] && $_POST['password'])) {
echo "Please input your username or password";
}else {
if($_POST['username']!= $username && $_POST['password']!=$password){
die("This is die");
echo "has been died";
}else {
echo "<a href='https://facebook.com'>facebook</a>";
}
}
}
?>
<form class="" action="<?php PHP_SELF?>" method="post">
<input type="text" name="username" placeholder="Username">
<input type="password" name="password" placeholder="Password">
<input type="submit" name="submit" value="Submit">
</form>
</body>
</html>