Skip to content

Instantly share code, notes, and snippets.

@pranav1698
Created June 22, 2019 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pranav1698/11458c5a89d49147875bb15f9f7d296c to your computer and use it in GitHub Desktop.
Save pranav1698/11458c5a89d49147875bb15f9f7d296c to your computer and use it in GitHub Desktop.
import os
import re
from flask import Flask, render_template, request
# Initialize the flask application
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
if request.method == 'POST':
first_name = request.form['first_name']
last_name = request.form['last_name']
email = request.form['email']
password = request.form['password']
print(password)
return render_template('index.html')
if __name__ == '__main__':
app.run(debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment