When I tried to submit this HTML form, it didn't, then I tried it as a local file, and I got the same issue, can anyone help? Note: I am very new to flask, so forgive me if a made a beginner mistake.
Here's my code (login.html):
<from action="#" method="post">
<input type="text" name="userName" placeholder="Enter Your Name..."/>
<input type="password" name="passw" placeholder="Enter Your Password..."/>
<input type="submit"/>
</from>
Here is my relevant Flask server code:
@app.route("/login/", methods=["POST", "GET"])
def login():
return render_template("login.html")
#not doing anything with the password at the moment.
@app.route("/<user>")
def user(user):
return f"<h1>{user}</h1>"