-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeedback.html
More file actions
97 lines (85 loc) · 2.89 KB
/
Copy pathfeedback.html
File metadata and controls
97 lines (85 loc) · 2.89 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
<!DOCTYPE html>
<html>
<head>
<title>Feedback</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="feedback.css">
<link rel="stylesheet" type="text/css" href="nav.css">
<script type="text/javascript" src="nav.js"></script>
</head>
<body>
<nav class="navigation-bar">
<a href="index.html"><img class="logo" src="img/logo.png"></a>
<a class="link" href="feedback.html">Feedback</a>
<a class="link" href="services.html">Services</a>
<a class="link" href="contri.php">Contribute</a>
<a class="link" onclick="on()" href="#">Courses</a>
</nav>
<div id="overlay" onclick="off()">
<table>
<tr>
<td><a class="link" href="cse.html">B.Tech cse</a></td>
<td><a class="link" href="ece.html">B.Tech ece</a></td>
<td><a class="link" href="bio.html">B.Tech biotech</a></td>
<td><a class="link" href="chem.html">B.Tech chem</a></td>
</tr>
</table>
</div>
<p>
Hope you liked our website, Please fill the feedback form.
We are looking forward to your comments.
</p>
<form id="fform" name="fform" method="post" action="feedback.php" onsubmit="return validate()">
<input type="text" name="name" placeholder="Name" ><br>
<input type="email" name="email" placeholder="Email" ><br>
<textarea name="feedback" placeholder="Feedback" ></textarea>
<button type="submit" value="Submit">Submit</button>
<button type="reset" value="Clear">Clear</button>
</form>
<script type="text/javascript">
function validate()
{
var name = document.forms["fform"]["name"];
var email = document.forms["fform"]["email"];
var feedback = document.forms["fform"]["feedback"];
if (name.value == "")
{
window.alert("Please enter your name.");
name.focus();
return false;
}
if (feedback.value == "")
{
window.alert("Please enter your feedback.");
feedback.focus();
return false;
}
if (email.value == "")
{
window.alert("Please enter a valid e-mail address.");
email.focus();
return false;
}
if (email.value.indexOf("@", 0) < 0)
{
window.alert("Please enter a valid e-mail address.");
email.focus();
return false;
}
if (email.value.indexOf(".", 0) < 0)
{
window.alert("Please enter a valid e-mail address.");
email.focus();
return false;
}
return true;
}
</script>
<a href="https://www.linkedin.com/in/thatbluekid/">
<h3 style="font-family: 'Squada One', cursive; color: black;
position: absolute; bottom: 0; margin: auto; width: 99vmax;
text-align: center;">© Pradeep 2019</h3>
</a>
</body>
</html>