您的表单缺少 method 属性,这将导致 GET 请求。如果你想发出 POST 请求,你必须添加 method 属性并将其设置为 post
<form method="POST" class="form-inline my-2 my-lg-0">