HTML 表单的默认加密类型是什么?
What is the default enctype for an HTML form?
假设我有包含一些输入的表格:
<form action="demo_post_enctype.asp" method="post" >
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>
如果我提交此表单:浏览器使用哪种 enctype?
是否有明确定义的默认类型?
还是每个浏览器都选择自己的 enctype(当然是在三个允许的类型中)?
The invalid value default for these attributes is the application/x-www-form-urlencoded
state. The missing value default for the enctype attribute is also the application/x-www-form-urlencoded
state. (There is no missing value default for the formenctype attribute.)
This attribute specifies the content type used to submit the form to the server (when the value of method is "post"). The default value for this attribute is "application/x-www-form-urlencoded
". The value "multipart/form-data
" should be used in combination with the INPUT element, type="file".
This determines the mechanism used to encode the form's contents. It defaults to application/x-www-form-urlencoded
.
默认为:"application/x-www-form-urlencoded",假设我的来源是正确的。
假设我有包含一些输入的表格:
<form action="demo_post_enctype.asp" method="post" >
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>
如果我提交此表单:浏览器使用哪种 enctype?
是否有明确定义的默认类型?
还是每个浏览器都选择自己的 enctype(当然是在三个允许的类型中)?
The invalid value default for these attributes is the
application/x-www-form-urlencoded
state. The missing value default for the enctype attribute is also theapplication/x-www-form-urlencoded
state. (There is no missing value default for the formenctype attribute.)
This attribute specifies the content type used to submit the form to the server (when the value of method is "post"). The default value for this attribute is "
application/x-www-form-urlencoded
". The value "multipart/form-data
" should be used in combination with the INPUT element, type="file".
This determines the mechanism used to encode the form's contents. It defaults to
application/x-www-form-urlencoded
.
默认为:"application/x-www-form-urlencoded",假设我的来源是正确的。