-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
110 lines (90 loc) · 2.04 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
108
109
110
<html>
<head>
<title>Treasure hunt</title>
<link rel="stylesheet" href="css/main.css"/>
<script src="js/main.js"></script>
</head>
<body>
<section class="first">
<div class="tex">
<img src="img\mkmk.png" />
</div>
<section class="dropdown">
<?php
include("php/dropdown.php");
?>
</section>
<div class="ml">
<a href="">HOME</a> <a href="php\signup.php">SIGN UP</a> <a href="#second">DASHBOARD</a>
</div>
<div class="header_text">
Here we compete to Win
</div>
<div class="lower_text">
Here we compete to Win<br/>
titgmtimg
</div>
<div class="register" onclick="window.location='php\/signup.php'">
Register Here
</div>
</section>
<section id="second" class="second">
<div class="tab">
<br/><br/><br/>
<table id="tab">
<?php
require("php\connect.php");
$query="Select * from userscore order by score desc;";
$result=mysql_query($query);
echo "<tr><th id='user'>Username</th><th id='score'>Score</th></tr>";
$i=0;
while($res=mysql_fetch_array($result))
{
echo "<tr><td>".$res['user']."</td><td>".$res['score']."</td></tr>";
$i++;
if($i==10)
break;
}
?>
</table>
</div>
</section>
<section class="third" id="third">
<div class="form1">
<form method="post" action="">
Enter your name :
<input type="text" name="name"><br/>
Enter email :
<input type="email" name="email" autocomplete="off">
<br/>
Feedback:<br/>
<textarea name="message" cols="40" rows="8"></textarea>
<br/>
<?php
if(isset($_REQUEST["name"]) && isset($_REQUEST["email"]) && isset($_REQUEST["mesage"])){
mail("[email protected]","feedback treasure:".$_REQUEST["email"],$_REQUEST["message"]);
}
?>
<br/>
<div id="button">
<input type="reset" id="reset">
<input type="submit" id="submit" value="Send">
</div>
</form>
</div>
<div class="another">
mkmkmkmk
</div>
<div class="last">
Developer :
<br/><br/>
<div id="insideimg">
<img src="img/amandeep.png" id="ima"/>
<br/>
Amandeep Gupta<br/>
SMVDU
</div>
</div>
</section>
</body>
</html>