-
Notifications
You must be signed in to change notification settings - Fork 0
/
signin.php
36 lines (35 loc) · 1.15 KB
/
signin.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
<?php
$title = "User SignIn";
require_once "./header.php";
?>
<br>
<br>
<br>
<form class="form-horizontal" method="post" action="user_verify.php">
<div class="form-group">
<label for="exampleInputEmail1">Email</label>
<input type="text" class="form-control" aria-describedby="emailHelp" placeholder="Enter username" name="username">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input type="password" class="form-control" placeholder="Password" name="password">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
<div style="position:fixed; bottom:400px">
<?php
$fullurl="http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
if(strpos($fullurl,"signin=empty")==true){
echo '<P style="color:red">You did not fill in all the fields.</P>';
exit();
}
if(strpos($fullurl,"signin=invalidusername")==true){
echo '<P style="color:red">Username Does not exist.</P>';
exit();
}
if(strpos($fullurl,"signin=invalidpassword")==true){
echo '<P style="color:red">Password is not correct.</P>';
exit();
}
?>
</div>