首页 > 其他 > 详细

初识表单post和get提交

时间:2021-03-09 15:59:21      阅读:24      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录注册</title>
</head>
<body>
<h1>注册</h1>

<!--表单form
action:表单提交的位置,可以是网站,也可以是一个请求处理地址
method:post,get提交方式
   get方式提交:我们可以在url中看到我们提交的信息,不安全,高效
   post:比较安全,传输大文件
-->
<form action="1.我的第一个网页.html" method="post">
<!--文本输入框:input type="text"-->

<p>名字:<input type="text"name="username"></p>
<!--密码框:input type="password"-->
<p>密码:<input type="password"name="password"></p>
<p>
    <input type="submit">
    <input type="reset">
</p>
</form>
</body>
</html>

 

初识表单post和get提交

原文:https://www.cnblogs.com/guangenpu/p/14505555.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!