Answers for "how to get value from txtbox in flask"

0

how to get value from txtbox in flask

from flask import Flask, request, render_template

app = Flask(__name__)

@app.route('/')
def my_form():
    return render_template('my-form.html')

@app.route('/', methods=['POST'])
def my_form_post():
    text = request.form['text']
    processed_text = text.upper()
    return processed_text
Posted by: Guest on September-14-2020
0

how to get value from txtbox in flask

<form method="POST">
    <input name="text">
    <input type="submit">
</form>
Posted by: Guest on September-14-2020

Code answers related to "how to get value from txtbox in flask"

Python Answers by Framework

Browse Popular Code Answers by Language