method属性规定如何发送表单的数据。有两种提交的方法分别为get和post。
1、get :提交的数据量小于1024字节,提交表格时表格字段的数值(表格请求的信息:账户、密码…)显示在地址栏中。
呃! DOCTYPE htmlhtmlhead title测试get提交数据方法/title/headbodycenterformaction=' https://www.Baidu.com ' method=' get ' p用户名: inputtypppper p密码: input type=' password '
跳转页面:
2、post:对传递的数据量没有限制,在提交表格时表格的字段值(表格请求的信息:账户、密码…)不显示在地址栏中。 安全性能好,隐藏信息,一般在开发中采用post。
呃! DOCTYPE htmlhtmlhead title测试post提交数据方法/title/headbodycenterformaction=' https://www.Baidu.com ' method=' post ' p用户名: inputtitle p密码: input type=' password ' nd
跳转页面: