html form拼凑表单触发后端api

发布时间 2023-09-12 14:04:44作者: liwenchao1995

目录

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