title: request.args.get('key') gives NULL - Flask
body: <p>I am trying to pass the variable 'email' from the 'signup' method in my view to the 'character' method. However, </p>
  
  <pre><code>request.args.get('email') 
  </code></pre>
  
  <p>is saving NULL into the database. I cannot figure out why.</p>
  
  <p>Here is what shows up after passing the 'email' variable to '/character':</p>
  
  <pre><code>http://127.0.0.1:5000/character?email=test%40test.com
  </code></pre>
  
  <p>Here is my code in 'views.py':</p>
  
  <pre><code>@app.route('/signup', methods=['GET','POST'])
  def signup():
      if request.method == 'GET':
          return render_template('signup.html')
      email = request.form['email']
      return redirect(url_for('character', email=email))
  
  @app.route('/character', methods=['GET', 'POST'])
  def character():
      if request.method == 'GET':     
          return render_template('character.html')
  
      email = request.args.get('email')
  
      password = request.form['password']
      name = request.form['username']
      temp = model.Actor(request.form['gender'], request.form['height'], request.form['weight'], request.form['physique'])
      user = model.User(name, email, password, temp)
      db.session.add(temp)
      db.session.add(user)
      db.session.commit()
      return redirect(url_for('movies'))
  </code></pre>
  
  <p>Everything else works just fine, it is just that 'email' is not being saved as 'test@test.com' and instead as NULL.</p>
  
  <p>Thank you for your help ahead of time!</p>
  
  <p>EDIT: 
  Solved using sessions in Flask.</p>
  
  <p><a href="http://flask.pocoo.org/docs/quickstart/#sessions" rel="noreferrer">http://flask.pocoo.org/docs/quickstart/#sessions</a></p>