JSP - StudyHTML - test2.html

모쿠모쿠·2022년 6월 3일

JSP

목록 보기
2/151
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Insert title here</title>
  </head>
  <body>
    <form action="test2_result.html">
      <!-- 폼 태그 내의 요소들을 다른 페이지로 전송하고 해당 데이터를 가져오려면 name 속성 필수! -->
      <!-- "&" 기호의 이름은 Ampersand(엠퍼센드)이다! -->
      <!-- input type="text" 등의 입력 항목은 데이터 작성하지 않으면 파라미터명만 전송됨 -->
      <!-- checkbox 항목은 미체크 시 파라미터 자체가 전송되지 않음 -->
      <input type="text" placeholder="아이디" name="id"><br>
      <input type="password" placeholder="비밀번호" name="passwd"><br>
      <input type="checkbox" id="login" name="rememberLogin"><laber for="login">로그인 상태 유지</label><br>
      <input type="submit" value="로그인(GET)">
    </form>
    
    <hr>
    
    <!-- method 속성에 'get' 명시할 경우 입력된 데이터가 URL(주소창)에 표시되지 않음 -->
    
    <form action="test2_result.jsp" method="post">
      <input type="text" placeholder="아이디" name="id"><br>
      <input type="password" placeholder="비밀번호" name="passwd"><br>
      <input type="checkbox" id="login" name="remember_Login"><label for="login">로그인 상태 유지</label><br>
    </form>
    
  </body>
</html>
Insert title here

로그인 상태 유지



로그인 상태 유지
profile
Hello, Velog!

0개의 댓글