表单属性

<form>标签:

<form action=" "  method=" "  name=" "  ...>

  表单元素

</form>

属性             值                                                                     描述

action          URL                                                           提交表单时向何处发送表单数据

method        get、post                                                  设置表单以何种方式发送到指定页面

name           form_name                                               表单的名称

target          _blank、_self                                            在何处打开action URL

                   _parent、_top

enctype      application/x-www-form-urlencoded          在发送表单数据之前如何对其进行编码

                             multipart/form-data

                                    text/plain

post和get区别:

get:使用URL传递参数

        对所发送信息的数量也有限制

        一般用于信息获取

post:表单数据作为HTTP请求体的一部分

          对所发送信息的数量无限制

          一般用于修改服务器上的资源

原文地址:https://www.cnblogs.com/hugegege/p/9446108.html