Skip to content

Instantly share code, notes, and snippets.

Created Oct 9, 2019
What would you like to do?
Formularios con Flask
from flask import Flask, render_template, request
app = Flask(__name__)
def inicio():
return render_template("formulario.html")
@app.route('/procesar', methods=['POST'])
def procesar():
nombre = request.form.get("nombre")
edad = request.form.get("edad")
return render_template("mostrar.html", nombre=nombre, edad=edad)
if __name__ == "__main__":'', port=8000, debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment