title: Flask - How to pass user input from HTML into python script
body: <p>I am trying to get user input for a 'username' and 'password' from a form in HTML so I can input them into my python script and have the program run. Where do I need to put the request.form to receive both variables? </p>
  
  <p>app.py</p>
  
  <pre><code>from flask import Flask, render_template, url_for, request
  
  app = Flask(__name__)
  
  
  @app.route('/', methods=['POST', 'GET'])
  def home():
      rh = Robinhood()
      rh.login(username="EMAIL", password="PASSWORD")
      projectpath = request.form['projectFilepath']
      return render_template('index.html')
  </code></pre>
  
  <p>index.html</p>
  
  <pre><code>&lt;form action="{{ url_for('home') }}" method="post"&gt;
          &lt;input type="text" name="projectFilepath"&gt;
          &lt;input type="submit"&gt;
      &lt;/form&gt;  
  </code></pre>
  
  <p>Very new to flask and python, thanks for the help!</p>