-
Notifications
You must be signed in to change notification settings - Fork 0
/
valuser.php
91 lines (88 loc) · 2.78 KB
/
valuser.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html>
<body background="image/bg.jpg">
<?php
$servername = "localhost";
$email = "admin";
$password = "pass@123";
$dbname = "admin";
// Create connection
$conn = new mysqli($servername, $email, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT email,password FROM users";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc())
{
if($row["email"]=="$_POST[fn]"){
if($row["password"]=="$_POST[pass]"){
echo "<br><br><center><h2 style='font-size: 30px;font-weight:600;font-family:Montserrat;text-transform: uppercase;' >The email And<span style='color:orange' > Password is validate successfully </span></center></h2>";
echo "<br><center><h2 style='font-size: 30px;font-weight:600;font-family:Montserrat;text-transform: uppercase;' >So Now You Can Access Our Website<span style='color:orange' > Access Our Website</span></center></h2>";
header('location:index.html');
goto end;
break;
}
echo "<br><br><center><h2 style='font-size: 30px;font-weight:600;font-family:Montserrat;text-transform: uppercase;' >You have Entered Wrong passwod <span style='color:orange' > Please Enter correct password </span></center></h2>";
goto back;
}
}
}
echo "<br><br><center><h2 style='font-size: 30px;font-weight:600;font-family:Montserrat;text-transform: uppercase;' >You Are not A valid User <span style='color:orange' > Please sign up First </span></center></h2>";
goto back;
$conn->close();
end:
echo "<hr>";
echo"<br><br><br>";
echo "<center>";
echo "<a href='index.html' style='text-decoration:none;
font-weight: 400;
letter-spacing: 1px;
line-height: 20px;
overflow: hidden;
padding: 8px 15px;
position: relative;
text-transform: uppercase;
z-index: 1;
background:#65db578c;
color:white;
border-left:2px solid orange;
border-right:2px solid orange;
border-top:2px solid orange;
border-bottom:2px solid orange;
cursor:pointer;
transition:800ms ease all;
outline:none;
border-radius: 5px;
text-transform: uppercase;'>Lets Start</a>";
echo "</center>";
goto kp;
back:
echo "<center>";
echo "<a href='log.html' style='text-decoration:none;
font-weight: 400;
letter-spacing: 1px;
line-height: 20px;
overflow: hidden;
padding: 8px 15px;
position: relative;
text-transform: uppercase;
z-index: 1;
background:#65db578c;
color:white;
border-left:2px solid orange;
border-right:2px solid orange;
border-top:2px solid orange;
border-bottom:2px solid orange;
cursor:pointer;
transition:800ms ease all;
outline:none;
border-radius: 5px;text-transform: uppercase;'>back</a>";
echo "</center>";
kp:
?>
</body>
</html>