데이터베이스 서버를 연결하고 쿼리를 실행하는 예시
쿼리의 결과를 받아 테이블 형식으로 html에 동적으로 생성하는 예시
<form method="POST" action="getYourData.jsp">
<label for="first_name">First Name: <input type="text" name="first_name"></label>
<label for="last_name">Last Name: <input type="text" name="last_name"></label>
<label for="student_id">studentID: <input type="text" name="student_id"></label>
<h4>Select which section you are taking:</h4>
<div class="radio_buttons">
<input type="radio" name="section" value="COMP32202">COMP32202</input>
<input type="radio" name="section" value="COMP32203">COMP32203</input>
<input type="radio" name="section" value="COMP32204">COMP32204</input>
<input type="radio" name="section" value="COMP32205">COMP32205</input>
<input type="radio" name="section" value="Nothing">Nothing</input>
</div>
<button type="submit">Submit</button>
</form>