html form拼凑表单触发后端api

目录

html form

<html>
    <head>
        <title>
            html index
        </title>
    </head>
    <body>
        <!-- form,点击提交后,访问demo.php.而我们一般用于form形成表单后,触发后端的api -->
        <form action="demo.php" method="get">
            Your Name: <input type="text",name="username"><br>
            Your Passwd: <input type="text",name="passwd"><br>
            <input type="submit" value="提交">
        </form>
    </body>
</html>

image

posted @ 2023-09-12 13:57  liwenchao1995  阅读(15)  评论(0编辑  收藏  举报