-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontact_form.html
140 lines (115 loc) · 5.3 KB
/
contact_form.html
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<html>
<head>
<meta charset="utf-8">
<title> Hi -Tech </Title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
body {
font-family: "Trebuchet MS", Helvetica, Sans-Serif;
font-size: 14px;
}
a {
text-decoration: none;
color: white;
}
a:hover {
color: red;
}
#menu {
margin-left: 30px;
}
#menu a {
display: block;
width: 140px;
}
#menu ul {
padding-top: 5px;
}
#menu li {
float: left;
position: relative;
padding: 3px 0;
text-align: center;
}
#menu ul.sub-menu {
display: none;
position: absolute;
top: 20px;
padding: 10px;
background-color:black;
}
#menu ul.sub-menu li {
text-align: left;
}
#menu li:hover ul.sub-menu {
display: block;
border: 5px solid #ececec;
}
</style>
<script type="text/javascript">
<!--
function abc(form)
{
if (form.id.value=="First Name")
{
if(form.pass.value=="Last Name")
{
alert("please enter your first name and last name");
}
}
else
alert("Congratulations!!! Your form has been submitted Successfully");
}
//-->
</script>
</head>
<body background="286553-1920x1080.jpg" alink = "green" vlink = "purple" link = "blue">
<table background="Hi-Tech-Radiation-Light-Blue.jpg" width=100%>
<tr>
<td align="center">
<h1><font color="white">TECH-WORLD</font></h1>
</td>
</tr>
</table>
<div id="menu">
<ul>
<li><a href="Tech-World.html">Home</a></li>
<li><a href="website.html">Computers</a></li>
<li><a href="Laptops.html">Laptops</a></li>
<li><a href="camera.html">Camera</a></li>
<li><a href="mobile.html">Mobile</a></li>
<li><a href="#">More</a>
<ul class="sub-menu">
<li><a href="printer.html">Printer</a></li>
<li><a href="speaker.html">Speakers</a></li>
</ul>
</li>
<li><a href="#">Contact</a>
<ul class="sub-menu">
<li><a href="email.html">E-mail Us</a></li>
<li><a href="contact_form.html">Use Our Contact Form</a></li>
</ul>
</li>
</ul>
</div>
<p align="center">
<table border=1 cellspacing=0 width=60% background="hi-tech.jpg">
<tr>
<td>
<form name="input" method="get">
First name: <input type="text AREA" name="id" value="First Name"><br>
<br>Last name: <input type="text" name="pass" value="Last Name"><br>
<br>Gender: <input type="radio" name="sex" value="male">Male
<input type="radio" name="sex" value="female">Female<br>
<br>QUERY: <textarea rows="4" cols="50"></textarea><br>
<br>
<div align="CENTER"><input type="submit" value="Submit" onClick="abc(this.form)"></div><br>
</form>
</td>
</tr>
</table>
</body>
</html>