HTML

[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 - 인코딩 없이 데이터 전송. (비권장)

 

 


분류 제목
form HTML - <input type="image"> 태그 - 이미지로 된 submit 버튼 (= 인풋이미지타입…
attribute HTML - oncut 속성 - 요소 내용 잘라내기 시 실행 (= oncut속성 = 온컷속성) ※ oncut…
attribute HTML - style 속성 ★ - 인라인 스타일 지정 (= style속성 = 스타일속성)
attribute HTML - onpause 속성 - (오디오/비디오) 일시정지 시 실행 (= onpause속성 = 온포스속성…
attribute HTML - onkeydown 속성 - 키보드키 내려갈 때 실행 (= onkeydown속성 = 온키다운속성)…
attribute HTML - onoffline 속성 - 브라우저가 오프라인으로 작동할 때 실행 (= onoffline속성 =…
attribute HTML - optimum 속성 - 최적 게이지값 지정 (= optimum속성 = 옵티멈속성) ※ 미터태그 …
form HTML - <input type="password"> 태그 - 패스워드 입력 (= 비밀번호 입력 = 인풋패…
attribute HTML - ondrop 속성 - 드래그 한 요소를 드롭 할 때 실행 (= ondrag속성 = 온드래그속성)…
attribute HTML - start 속성 - 순서있는 리스트 시작값 설정 (= start속성 = 스타트속성) ※ 오엘태그…
attribute HTML - onstorage 속성 - 로컬스토리지 데이터 변경 시 실행 (= onstorage속성 = 온스…
1/24
목록
 홈  PC버전 로그인 일본어
그누앞단언어
그누뒷단언어
그외코딩언어
그누보드
제작의뢰
Q&A
커뮤니티
웹유틸
회원센터
홈짱닷컴 PC버전 로그인