requestTest_Form.jsp
페이지 정보
본문
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>Request Test</title>
<style>
h1 , #commandCell{
text-align: center;
}
table {
margin: auto;
width: 400px;
border: 1px solid red;
}
</style>
</head>
<body>
<h1>Request 예제입니다.</h1>
<form action="requestTest1.jsp" method="post">
<table>
<tr>
<td>이름</td>
<td><input type="text" name="name" id="name"></td>
</tr>
<tr>
<td>성별</td>
<td>
남<input type="radio" name="gender" value="male" id="gender">
여<input type="radio" name="gender" value="female">
</td>
</tr>
<tr>
<td>취미</td>
<td>
독서<input type="checkbox" name="hobby" value="독서">
게임<input type="checkbox" name="hobby" value="게임">
TV시청<input type="checkbox" name="hobby" value="TV시청">
축구<input type="checkbox" name="hobby" value="축구">
기타<input type="checkbox" name="hobby" value="기타">
</td>
</tr>
<tr>
<td>취미2</td>
<td>
독서<input type="checkbox" name="pkt1" value="독서">
게임<input type="checkbox" name="pkt2" value="게임">
TV시청<input type="checkbox" name="pkt3" value="TV시청">
축구<input type="checkbox" name="pkt4" value="축구">
기타<input type="checkbox" name="pkt5" value="기타">
</td>
</tr>
<tr>
<td>취미3</td>
<td>
독서<input type="checkbox" name="aaa1" value="1">
게임<input type="checkbox" name="aaa2" value="1">
TV시청<input type="checkbox" name="aaa3" value="1">
축구<input type="checkbox" name="aaa4" value="1">
기타<input type="checkbox" name="aaa5" value="1">
</td>
</tr>
<tr>
<td colspan="2" id = "commandCell"><input type="submit" value="전송"></td>
</tr>
</table>
</form>
</body>
</html>
- 이전글● request 객체 21.07.15
- 다음글requestTest1.jsp 21.07.15
댓글목록
등록된 댓글이 없습니다.