• 회원가입
  • 로그인
  • 구글아이디로 로그인

[attribute] HTML - enctype 속성 - 폼데이터 인코딩방식 지정 (= enctype속성 = 인크타입속성/잉크타입속성)

목차
  1. enctype 예제 - 폼데이터 인코딩 방식 지정
  2. enctype 정의
  3. enctype 구문

 

enctype 예제 - 폼데이터 인코딩 방식 지정

 

<form action="/action_page.php" method="post" enctype="multipart/form-data">

  <label for="name">이름:</label>

  <input type="text" id="name" name="name"><br><br>

  <label for="nick">별명:</label>

  <input type="text" id="nick" name="nick"><br><br>

  <input type="submit" value="확인">

</form>

 

 

enctype 정의

 

폼데이터를 서버에 제출할 때의 인코딩 방식 지정.

 


 

1.

enctpye 속성은 method="post" 경우에만 사용 가능.

 

2. enctype 속성 사용 가능 태그 종류

<form>

 

3.

모든 브라우저 지원.

 

 

enctype 구문

 

<form enctype="value">

 


[속성값]

 

value

폼 데이터 인코딩 방식 지정.

  • application/x-www-form-urlencoded - (기본값). 모든 문자는 전송되기 전에 인코딩 됨. (공백은 "+" 기호로 변환되고, 특수문자는 ASCII HEX 값으로 변환됨.)
  • multipart/form-data - 파일 업로드 시 필요.
  • text/plain - 인코딩 없이 데이터 전송. (비권장)

 

 

방문 감사합니다. (즐겨찾기 등록: Ctrl + D)

분류 제목
attribute HTML - onkeyup 속성 ★ - 키보드키 올라갈 때 실행 (= onkeyup속성 = 온키업속성) ※ …
attribute HTML - onload 속성 ★ - 지정 객체가 로드된 경우 실행 (= onload속성 = 온로드속성) ※…
attribute HTML - onloadeddata 속성 - 미디어 로드되고 준비 완료 시 실행 (= onloadeddata…
attribute HTML - onloadedmetadata 속성 - 미디어 로드되고 준비 완료 시 실행 (= onloaded…
attribute HTML - onloadstart 속성 - 미디어 로드 시작 시 실행 (= onloadstart속성 = 온…
attribute HTML - onmousedown 속성 - 마우스버튼 내려갈 때 실행 (= onmousedown속성 = 온마…
attribute HTML - onmousemove 속성 ★ - 마우스커서가 지정요소 안으로 이동 시 실행 (= onmouse…
attribute HTML - onmouseout 속성 ★ - 마우스커서가 지정요소 밖으로 이동 시 실행 (= onmouseo…
attribute HTML - onmouseover 속성 ★ - 마우스커서가 지정요소 위에 있을 때 실행 (= onmouseo…
attribute HTML - onmouseup 속성 - 마우스버튼 올라갈 때 실행 (= onmouseup속성 = 온마우스업속…
attribute HTML - onmousewheel 속성 - (폐기예고) 마우스휠 움직일 때 실행 (= onmousewhe…
attribute HTML - onoffline 속성 - 브라우저가 오프라인으로 작동할 때 실행 (= onoffline속성 =…
attribute HTML - ononline 속성 - 브라우저가 온라인으로 작동할 때 실행 (= ononline속성 = 온온…
attribute HTML - onpagehide 속성 - 웹페이지가 숨겨질 때 실행 (= onpagehide속성 = 온페이지…
attribute HTML - onpageshow 속성 - 사용자가 웹페이지 탐색 시 실행 (= onpageshow속성 = 온…
attribute HTML - onpaste 속성 - 사용자가 요소에 내용 붙여넣기 시 실행 (= onpaste속성 = 온패스…
attribute HTML - onpause 속성 - (오디오/비디오) 일시정지 시 실행 (= onpause속성 = 온포스속성…
attribute HTML - onplay 속성 - (오디오/비디오) 재생 시 실행 (= onplay속성 = 온플레이속성) ※…
attribute HTML - onplaying 속성 - (오디오/비디오) 재생 중 실행 (= onplaying속성 = 온플레…
attribute HTML - onpopstate 속성 - 브라우저 히스토리 변경 시 실행 (= onpopstate속성 = 온…
13/18
목록
찾아주셔서 감사합니다. Since 2012