-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.php
114 lines (103 loc) · 5.23 KB
/
test.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php
if(isset($_POST['email']))
{
$conn_id=5;
require 'connect.php';
$sql = "SELECT * FROM user_details WHERE email = '$_POST[email]'";
$result = $conn->query($sql);
$count = mysqli_num_rows($result);
if($count > 0)
{
echo "exists";
}
else
{
echo '<script type="text/javascript">',
'invalid_email();',
'</script>';
// echo "Doesn't exist";
}
}
?>
<style>
body
{
background-image: url(assets/test2.jpg);
background-repeat: repeat-x repeat-y;
}
.login_wrap
{
background: #EEE;
border-radius: 10px;
}
</style>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<!--GOOGLE FONTS-->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,400i,700,700i,900,900i&display=swap" rel="stylesheet">
<!--MAIN CSS-->
<link rel="stylesheet" href="css/main.css">
<!--ICON & TITLE-->
<link rel="icon" href="assets/icon.png">
<title>Books Online</title>
</head>
<body>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<!--LOGIN FORM-->
<div class="container h-100">
<div class="row h-100">
<div class="col-md-4 mx-auto d-flex justify-content-center align-items-center">
<div class="container">
<div class="row">
<p style="font-family:Playfair Display; font-size:35px; font-weight:600; text-align:center; padding-top:0px; width:100%;">Welcome to My Site</p>
</div>
<div class="row">
<p style="font-family:Playfair Display; font-size:25px; font-weight:600; text-align:center; padding-top:0px; width:100%;">Find the book that's right for you.</p>
</div>
</div>
</div>
<div class="col-md-8 mx-auto d-flex justify-content-center align-items-center">
<div class="col-md-6 login_wrap mx-auto">
<p style="font-family:Playfair Display; font-size:26px; font-weight:600; text-align:center; padding-top:50px; padding-bottom:0px;">Sign in to My Site</p>
<form action="" method="post" style="padding:40px 30px;">
<div class="form-group">
<label for="email">Email address</label>
<input type="email" class="form-control" id="email" aria-describedby="emailHelp" placeholder="Enter Email ID" name="email" required>
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" placeholder="Password" name="password" required>
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">Remember Me</label>
</div>
<div class="row">
<div class="col-md-12">
<p class="small mt-2">New here? <a href="register.php">Sign Up</a>.</p>
</div>
</div>
<button type="submit" class="btn btn-primary mt-2 mb-0">Submit</button>
</form>
</div>
</div>
</div>
</div>
<script>
function invalid_email()
{
alert("Email Not Found");
}
</script>
</body>
</html>