-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbug_filing_done.php
executable file
·71 lines (70 loc) · 2.23 KB
/
bug_filing_done.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
<?php
session_start();
if(isset($_SESSION['username']) && isset($_SESSION['password']))
{
$user=$_SESSION['username'];
}
else { ?>
<script>
alert("Session Expired!!!");
window.location="../index.php";
</script>
<?php }
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
SASTRA University - SRC
</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper_outer">
<div id="wrapper">
<div id="header"><center><img src="images/header.png" alt="sastra university"/></center></div>
<div id="welcome"> Welcome User,</div>
<div id="menu">
<img src="images/Sastra1.png" width="170" alt="sastra university" />
<div class="clear"></div>
<img src="images/menu-top.png" alt="menu-top"/>
<div id="nav">
<ul>
<li><a href="javascript:window.close()">Close</a></li>
<li><a href="logout.php">Sign Out</a></li>
</ul>
</div>
<img src="images/menu-bottom.png" alt="menu-bottom"/>
</div>
<div id="content">
<div id="main">
<img src="images/cont-top.png" alt="cont-top"/>
<!--Write code here!-->
<div id="studenthome" class="main">
<h2 class='heading'>Thank you!</h2>
<?php
require_once('db_config.php');
$type = $_POST['type'];
$desc = $_POST['description'];
$email = $_POST['email'];
$mobile = $_POST['mobile'];
$contactable = $_POST['contactable'];
$ref = $_POST['ref'];
$query_bug = "insert into bug_filing(userid,type,description,emailid,mobile,contactable,ref_page)"
. "values('$user','$type','$desc','$email','$mobile','$contactable','$ref')";
$result_bug = mysql_query($query_bug) or die(mysql_error());
?>
<p class="confirmmsg">We have received your bug. We are actively working on fixing it. We'll get back to you soon.</p>
<p align="left"> </p>
</div>
<img src="images/cont-bottom.png" alt="cont-bottom"/> </div>
</div>
</div>
<div style="clear:both"> </div>
</div>
<div id="footer">
Copyright 2010 SASTRA University - SRC Campus | Engineered By GLOSS Community | <a href="bug_filing.php?ref=top">Report Bugs</a> | <a href="feedback.php">Feedback</a> | <a href="credits.php">Credits</a>
</div>
</div>
</body>
</html>