-
Notifications
You must be signed in to change notification settings - Fork 2
/
newstudy.jsp
38 lines (37 loc) · 1.57 KB
/
newstudy.jsp
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
<%-- Include tag is used to import header page --%>
<%@ include file="header.jsp" %>
<%-- Code to display Page Name --%>
<h3 id="page_name">Adding a study</h3>
<%-- Code to go Back to the Main Page --%>
<a href="main.jsp?user=Hello,Kim" id="back_to_page">«Back to the Main Page</a>
<%-- Section to create new study --%>
<section id="newstudy_form">
<form id="add_study_form" action="studies.jsp?user=Hello,Kim" method="post">
<label>Study Name *</label>
<input type="text" name="study_name" required /><br>
<label>Question Text *</label>
<input type="text" name="question_text" required/><br>
<label>Image *</label>
<button type="button">Browse</button>
<br>
<br>
<label># Participants *</label>
<input type="text" name="participants" required/><br>
<label># Answers *</label>
<select id = "answer_number" name="answer" onchange="changeAnswers()">
<option value="one">1</option>
<option value="two">2</option>
<option value="three">3</option>
<option value="four">4</option>
</select><br>
<div id="answer_section">
<label>Answers 1 *</label>
<input type="text" name="answer_1" required/><br>
</div>
<label id="study_description">Description *</label>
<textarea name="description" required></textarea><br>
<button type="submit" id="submit_button">Submit</button>
</form>
</section>
<%-- Include tag is used to import footer page --%>
<%@ include file="footer.jsp" %>