-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
107 lines (96 loc) · 3.56 KB
/
index.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
<?php
session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Welcome to Online Exam</title>
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="quiz.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
include("header.php");
include("database.php");
extract($_POST);
if(isset($submit))
{
$rs=mysqli_query($con,"select * from mst_user where login='$loginid' and pass='$pass'");
if(mysqli_num_rows($rs)<1)
{
$found="N";
}
else
{
$_SESSION[login]=$loginid;
}
}
if (isset($_SESSION[login]))
{
echo "<h1 class='text-center bg-danger'>Welcome to Online Exam</h1>";
echo '<table width="28%" border="0" align="center">
<tr>
<td width="7%" height="65" valign="bottom"><img src="image/HLPBUTT2.JPG" width="50" height="50" align="middle"></td>
<td width="93%" valign="bottom" bordercolor="#0000FF"> <a href="sublist.php" class="style4">Subject for Quiz </a></td>
</tr>
<tr>
<td height="58" valign="bottom"><img src="image/DEGREE.JPG" width="43" height="43" align="absmiddle"></td>
<td valign="bottom"> <a href="result.php" class="style4">Result </a></td>
</tr>
</table>';
exit;
}
?>
<table width="100%" border="0">
<tr>
<td height="296" valign="top"><div align="center">
<h1 class="style8">Welcome to Online Quiz</h1>
<span class="style5"><img src="image/paathshala.jpg" width="129" height="100"><span class="style7"><img src="image/HLPBUTT2.JPG" width="50" height="50"><img src="image/BOOKPG.JPG" width="43" height="43"></span> </span>
<param name="movie" value="english theams two brothers.dat">
<param name="quality" value="high">
<param name="movie" value="Drag to a file to choose it.">
<param name="quality" value="high">
<param name="BGCOLOR" value="#FFFFFF">
<p align="left" class="style5"> </p>
<blockquote>
<p align="left" class="style5"><span class="style7">WelCome to Online
exam. This Site will provide the quiz for various subject of interest.
You need to login for the take the online exam.</span></p>
</blockquote>
</div></td>
<table align="center" border="0" WIDTH="50%" height="250">
<h1 class="text-center bg-warning">LOGIN PAGE</h1>
<form method="post" action="">
<center>
<img class="img-circle" src="1.jpg" title="this is my profile pic" width="240px" height="190px" border="1" />
</center> <br>
<tr>
<th class="text-primary">LOGIN ID</th>
<th>
<input class="form-control"type="TEXT" title="enter your regitered LOGIN ID" placeholder="LOGIN ID" maxlength="10" size="25" id="loginid2" name="loginid"/></tD>
</th>
<tr>
<th class="text-primary">ENTER PASSWORD</th>
<th><input class="form-control" type="password" name="pass" id="pass2"/></th>
</tr>
<?php
if(isset($found))
{
echo "Invalid Username or Password";
}
?>
</span></td>
<th></th>
<th class="errors">
<input class="btn btn-danger "type="submit" name="submit" id="submit" Value="Login"/>
<a class="btn btn-success " href="signup.php">New user ? click here</a></th>
</table>
<div align="center">
<p class="style5"><img src="images/topleft.jpg" width="134" height="128"> </p>
</div>
</form></td>
</tr>
</table>
</body>
</html>