登录页面使用post方式传参,将账号密码两个input标签的数据传参给php文件
<form action="./02_login.php" method="post">
账号: <input type="text" name="username" placeholder="请您输入账号"><br>
密码: <input type="password" name="userpwd" placeholder="请您输入密码"><br>
<button>登录</button>
后台PHP以post方式接收前端传递参数,通过[索引键名]的形式从数据中获取具体的参数数据
$username = $_POST['username'];
$userpwd = $_POST