引导4输入字段未向服务器发送值(python、flask、GAE)
我无法在表单中获取输入字段以向服务器发送值。(我在谷歌应用程序引擎上使用flask+python) 请原谅,如果这是一个新手问题引导4输入字段未向服务器发送值(python、flask、GAE),python,flask,bootstrap-4,Python,Flask,Bootstrap 4,我无法在表单中获取输入字段以向服务器发送值。(我在谷歌应用程序引擎上使用flask+python) 请原谅,如果这是一个新手问题 Part of my html template file: <form class="form-inline" action="/rm_list" method="POST"> <div class="row" > <div clas
Part of my html template file:
<form class="form-inline" action="/rm_list" method="POST">
<div class="row" >
<div class="col-span-6">
<fieldset>
<input class="form-control form-control-lg" type="text" name="searchtext" placeholder="Product...">
<input name="text1">
<button class="btn btn-primary" type="submit"><i class="material-icons w3-text-black" >search</i></button>
</div>
...
...
some radio buttons
在尝试不同的解决方案后,我发现罪魁祸首是type=“text”属性。
我可以看到simple text1输入的值,但searchtext输入的值不在接收到的数据中:-(
如果我删除“type=”text,如下所示:
<input class="form-control form-control-lg" name="searchtext" Placeholder="Product...">
然后服务器接收到searchtext字段
知道我做错了什么吗
谢谢!在我看来,您的字段只是缺少值属性。–Anonymous在我看来,您的字段只是缺少值属性。
<input class="form-control form-control-lg" name="searchtext" Placeholder="Product...">