form1.html

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

<title>해커 가입</title>

</head>

<body>

해킹할 ID와 password 및 자기소개를 입력 해라!

<form action= "form1.jsp" method = "post" name = "textform">

ID : <input type = "text" name = "id"> <br/>

Password : <input type="password" name = "pw"> <br/>

자기소개 <br/>

<textarea name="desc" rows="4" cols="50"></textarea><br>


<center>

<input type = "submit" value="전송" name="submitbtn">

<input type = "reset" value="초기화" name="resetbtn">

</center>

</form>

</body>

</html>






form1.jsp


<%@ page language="java" contentType="text/html;charset=EUC-KR"

pageEncoding="EUC-KR"%>

<%

request.setCharacterEncoding("utf-8");    //한글처리용

%>



<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

<title>Form 처리 입니다아다아다다당 ㅋㅋ</title>

</head>

<body>


입력 정보 입니다.


ID : <%= request.getParameter("id") %>  <br/>

Password : <%= request.getParameter("pw") %>

자기소개 : <%= request.getParameter("desc") %>


</body>

</html>

블로그 이미지

김진리

,