这是html文件
<!DOCTYPE html>
<html lang="cn">
<head>
<meta charset="UTF-8">
</head>
<body>
<form action="LoginPage-function.php" method="post">
<div class="BorderStyle">
<div class="TitleStyle">账户登录</div>
<div class="GuideTextStyle">账户名称</div>
<input id="usernamefield" class="DefaultInputStyle" name="username">
<div class="GuideTextStyle">账户密码</div>
<input id="passwordfield" type="password" class="DefaultInputStyle" name="password">
<button class="DefaultButtonStyle" type="submit">登录</button>
<p id="tipmessage " class="DefaultTipStyle ">PS:暂不支持其它登录方式</p>
</div>
</form>
</body>
</html>
这是PHP文档
<?php
$server = 'localhost:3306';
$username = '朝武芳乃';
$password = 'Zhaowufangnai1';
$databasename = 'FinicalSystem2022';
$connection = new mysqli($server,$username,$password,$databasename);
if($connection->connect_error){
die('connect error'.$connection->connect_errno);
}
$connection->set_charset('UTF-8');
$result = $connection->query('select * from baseusername');
$date = $result->fetch_all();
print_r($date)
?>
登录按钮事件,就报错405
这是什么情况呢,又要怎样修改呢?