-
Notifications
You must be signed in to change notification settings - Fork 3
/
feedback.php
83 lines (63 loc) · 2.43 KB
/
feedback.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
<?php
$conn = mysqli_connect("localhost","root","");
if($conn)
{
mysqli_select_db($conn,"gptw");
if (isset($_POST['submit'])) {
$query = "INSERT INTO feedbacks(`NAME`, `EMAIL`, `MESSAGE`) VALUES('$_POST[name]', '$_POST[email]' , '$_POST[message]')";
$result = mysqli_query($conn , $query);
if ($result) {
echo "<center style=color:red>FEEDBACK is gven to admin</center>";
}else{
echo "<center style=color:red>ERROR!</center>";
}
}
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>FEEDBACK</title>
<style>
.a{background-color: #33ffff;height:125px;width:1335px;border-radius:15px;}#id1{background-color:pink;width:1335px;}
.b{color:red; }
.c{background-color: green;height:50px;width:1335px;border-radius:10px}
a{color: yellow} #id3{color: red}
span{color:blue } #id2{height:30px;border-radius: 50%} #id4{color: #3B5998} #id5{color: purple} #id6{color: red}
</style>
</head>
<body bgcolor="silver">
<!--header-->
<div class="a" align="center"><br><br>
<h2 class="b"><font color="blue" face="lucida handwriting">GOVT. POLYTECHNIC</font><font color="black"> ,</font><font face="Segoe Script"> WARANGAL</font></h2>
</div>
<div class="c" align="center"><br>
<a href="index.php">HOME </a> |
<a href="about.php">ABOUT </a> |
<a href="gallery.php">GALLERY</a> |
<a href="stdcorner.php">STUDENT CORNER</a> |
<a href="login.php">LOGIN</a> |
<a href="feedback.php">FEEDBACK</a> |
<a href="contact.php">CONTACT US</a>
</div>
<!--/header-->
<br><br>
<form acton="feedback.php" method="post">
<div align="center">
<div>
<h3>GIVE YOUR FEEDBACK</h3><br>
<div>
<input type="text" name="name" placeholder="NAME" size=50 style="padding:8px" required> <br><br>
<input type="text" name="email" placeholder="EMAIL" size=50 style="padding:8px"required> <br><br>
<textarea name="message" placeholder="TYPE YOUR MESSAGE" rows="10" cols="54" required></textarea> <br><br>
<input type="submit" name="submit" valu="submit">
</div>
</div>
</form>
<!--footer-->
<br><br><div style= "background-color:maroon ; padding:2px">
<p style="color:white" align="center">© 2018 GPTW . Designed by <b>Sathish kesoju</b> and <b>Rajesh Keshoju</b></p>
</div>
<!-- /footer-->
</body>
</html>