Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/362.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
引导4输入字段未向服务器发送值(python、flask、GAE)_Python_Flask_Bootstrap 4 - Fatal编程技术网

引导4输入字段未向服务器发送值(python、flask、GAE)

引导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

我无法在表单中获取输入字段以向服务器发送值。(我在谷歌应用程序引擎上使用flask+python)

请原谅,如果这是一个新手问题

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...">