The formmethod Attribute(formmethod 속성) 정보
HTML The formmethod Attribute(formmethod 속성)본문
The formmethod Attribute(formmethod 속성)
formmethod 속성은 양식 데이터를 작업 URL로 보내는 HTTP 메소드를 정의합니다.
formmethod 속성은 <form> 요소의 method 속성을 덮어 씁니다.
formmethod 속성은 type = "submit"및 type = "image"와 함께 사용할 수 있습니다.
예
두 번째 제출 버튼은 다음과 같은 형식의 HTTP 메소드를 대체합니다.
<form action = "action_page.php"method = "get">
이름 : <input type = "text"name = "fname"> <br>
성 : <input type = "text"name = "lname"> <br>
<input type = "submit"value = "Submit">
<input type = "submit"formmethod = "post"formaction = "demo_post.asp"
value = "POST를 사용하여 제출">
</ form>
추천
0
0
댓글 0개