HTML Code
    <!DOCTYPE html>
<html>
  <head>
    <h1>App</h1>
  </head>
  <body>
    <form action="Test.py" method="GET">
      <label for="search">Enter keyword here</label>
      <input type="text" name="userInput" required></input>
      <input type="submit" value="submit"></input>
      </form>
    
  </body>
</html>
Flask Code
    from flask import Flask, url_for, request
app = Flask(__name__)
@app.route("extPage.html", methods=['POST', 'GET'])
userinput = request.form("userInput")
print(userinput)
Whenever I run the HTML and submit something, it just returns the python flask code on the webpage. Want I am trying to do is use the userInput tag to create a variable to use in a python program not related. I need the input returned as a string which is why I am testing it with "print(userinput). My goal is to print the submission.