HTML5-初识表单post和get提交
表单语法 <form method="post" action="result.html">名字:
<input name="name" type="text" > p>
<p>密码:<input name="pass" type="password" > p>
<p> <input type="submit" name="Button" value="提交"/>
<input type="reset" name="Reset" value="重填“/>
method:规定如何发送表单数据,
常用值:
get :get方式提交,我们可以在url中看到我们提交的信息,不安全,但高效
post:比较安全,可以传输文件
action:表示向何处发送表单数据
"utf-8">登录注册 注册