Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/60.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
如何获得图像<;输入>;从烧瓶中的HTML_Html_Python 3.x_Forms_Flask_Webserver - Fatal编程技术网

如何获得图像<;输入>;从烧瓶中的HTML

如何获得图像<;输入>;从烧瓶中的HTML,html,python-3.x,forms,flask,webserver,Html,Python 3.x,Forms,Flask,Webserver,快速提问,因为我在其他任何地方都找不到这个 如果我有这样的输入: <input type="image" name="Text" value="text" src="{{ url_for('static', filename='images/icons/General/Post.svg') }}" /> 我知道有一种类似的方法可以使用检索数据,但前者不起作用 谢谢 编辑:固定格式和语法 TLDR:我无法从python中的flask中检测到类型为image的输入。根据: 对于imag

快速提问,因为我在其他任何地方都找不到这个

如果我有这样的输入:

<input type="image" name="Text" value="text" src="{{ url_for('static', filename='images/icons/General/Post.svg') }}" />
我知道有一种类似的方法可以使用
检索数据,但前者不起作用

谢谢

编辑:固定格式和语法

TLDR:我无法从python中的flask中检测到类型为
image
的输入。

根据:

对于image类型的输入元素,value属性不应为 指定的

该值将始终为None

request。表单[“Text”]==None?我假设你有另一个按钮,你试图区分这两个提交?
if request.method == "POST":
    if request.form["Text"] == "text":
        return render_template("PostText.html")