-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquestion.html
128 lines (92 loc) · 3.04 KB
/
question.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
Name : Garden Of Orchids
Description: A two-column, fixed-width design with dark color scheme.
Version : 1.0
Released : 20101115
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Q & A</title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
<style type="text/css">
</style>
</head>
<body>
<script type="text/javascript">
function valsearch(){
var x=document.forms["look"]["s"].value
if (x == ""){
alert ("You must fill in all of the required fields!")
return false;
}
else{
document.write(x);
return true;
}
}
function validate(){
var x = document.forms["question"]["title"].value
var y = document.forms["question"]["q"].value
if (x == ""){
alert ("You must fill in a title!")
return false;
}
else if(y ==""){
alert ("You must fill in a question!"
return false;
}
else{
document.write(x);
return true;
}
}
</script>
<div id ="wrapper">
<div id="header">
<div id="logo">
<a border="0" href = "index.html"> <img border = "0" src = "image/logos.png" ></img></a>
</div>
<div id="search" >
<form name = "look" onsubmit="return validate()" method = "post" action = "/submitSearch">
<input type="text" name="s" id="search-text" value="" method="post">
<input type="submit" id="search-submit" value="SEARCH" />
</form>
</div>
</div>
</div>
<div id = "page">
<div id = "content">
<p><a href = "index.html">Home > </a> Question</p>
<div id = "box">
<form action = "/submitQuestion" onsubmit="return validate()" method = "post">
Name: <input type="text" name="n" id="box-text2" value="">
<div style="clear: both;"> </div>
Email: <input type="text" name="email" id="box-text2" value="">
<div style="clear: both;"> </div>
Title:<br> <input type="text" name="title" id="box-text" value="">
<div style="clear: both;"> </div>
Question: <br><textarea name="q" id="box-textarea" rows="10" cols="64"></textarea>
<img src = "image/qsmall.png"></img>
<div style="clear: both;"> </div>
<input type="submit" id="box-submit" value="SUBMIT" />
</form>
</div>
</div>
<!-- end #content -->
<div style="clear: both;"> </div>
</div>
</div>
<!-- end #page -->
<div id="footer">
<p>Copyright (c) 2011. All rights reserved. Design by jars();</a>.</p>
</div>
<!-- end #footer -->
</body>
</html>