전화번호 입력








 
"> ex06

전화번호 입력








 
"> ex06

전화번호 입력








 
">
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ex06</title>

</head>
<body>
	<h1>전화번호 입력</h1>
	<br>
	<form action="ex06Pro.jsp" method="get">
		<label>이름 : </label>
		<input type="text" name="name"/>
		<br/><br/>
		<label>통신사 : </label>
		<select name="telecom">
			<option value="skt">SKT</option>
			<option value="kt">KT</option>
			<option value="lg">U+</option>
		</select>
		<br/><br/>
		<label>전화번호 : </label><input type="text" name="tel">
		<br/><br/>
		<input type="submit" value="제출"/> &nbsp; <input type="reset" value="취소"/>
	</form>

</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("utf-8");
	String name = request.getParameter("name");
	String telecom = request.getParameter("telecom");
	String tel = request.getParameter("tel");
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ex06Pro</title>
<style type="text/css">
p {
	font-size: 24px;
}
</style>
</head>
<body>
	<h1>확 인</h1>
	<hr>
	<p><%= name%> 님의 전화번호 : <%= tel%></p>
	<p>통신사 : <%= telecom%></p>
</body>
</html>