<html>
    <head>
        <title>第一个表单</title>
    </head>
    <body>
        <pre>
        method:请求方式 get/post  
            get: 默认方式,数据量小,安全性不高
            post:量大,安全性相对高
        action:请求的服务器路径
        id:编号,前端区分唯一性 ,js中使用
        name:名称,后端(服务器)区分唯一性 ,获取值
        只要提交数据给后台,必须存在name
        </pre>
        <form method="post" action="http://localhost:8888/g">
            用户名:<input type="text" name="uname" id="uname"/>
            密码:<input type="password" name="pwd" id="pwd"/>
            <input type="submit" value="登录"/>
        </form>
    </body>
</html>
index.html

相关文章:

  • 2021-11-03
  • 2018-09-12
  • 2021-09-05
  • 2021-07-02
  • 2022-12-23
  • 2021-10-25
  • 2021-10-26
猜你喜欢
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2021-07-08
相关资源
相似解决方案