-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
103 lines (94 loc) · 3.04 KB
/
index.php
File metadata and controls
103 lines (94 loc) · 3.04 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>singin and signup</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body>
<img src="maxresdefault (1).jpg">
<style>
img{
opacity: 80%;
width: 100%;
z-index:-1;
position: absolute;
}
</style>
<br>
<br>
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="panel panel-danger">
<div class="panel-heading">Online Quiz system in php</div>
<div class="panel-body">Quiz in php </div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="panel panel-info">
<div class="panel-heading">Signin Form</div>
<div class="panel-body">
<?php
if(isset($_GET['run']) && $_GET['run']=="failed")
{
echo "Your email or password is not correct";
}
?>
<form role="form" action="signin_sub.php" method="post">
<div class="form-group">
<label for="email">Email:</label>
<input type="email" class="form-control" name="e" id="email" placeholder="Enter email">
</div>
<div class="form-group">
<label for="pwd">Password:</label>
<input type="password" class="form-control" name="p" id="pwd" placeholder="Enter password">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="panel panel-info">
<div class="panel-heading">Signup Form</div>
<div class="panel-body">
<?php
if(isset($_GET['run'])&& $_GET['run']=="success")
{
echo "<mark>Your registration successfully done</mark>";
}
?>
<form role="form" method="post" action="signup_sub.php" enctype="multipart/form-data" >
<div class="form-group">
<label for="name">Name:</label>
<input type="text" class="form-control" name="n" id="name" placeholder="Enter name">
</div>
<div class="form-group">
<label for="email">Email:</label>;
<input type="email" class="form-control" name="e" id="email" placeholder="Enter email">
</div>
<div class="form-group">
<label for="pwd">Password:</label>
<input type="password" class="form-control" name="p" id="pwd" placeholder="Enter password">
</div>
<div class="form-group">
<label for="pwd">Upload your iamge</label>
<input type="file" class="form-control" name="img" >
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</div>
</div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</body>
</html>