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

3.67
3
Awgiedawgie 440220 points

                                    <form method="POST">
    <input name="text">
    <input type="submit">
</form>

3.67 (3 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
get data from text fbox flask capture input from html in flask flask get data from html input on change flask html input text flask take inpu input box in flask get value from textbox html to flask api flask take data out from textbox flask get text from input handle text input flask flask take input from user get input value flask how do you extract data from an html textbox using python flask flask get form input send textbox data to app.py from html flask flask python take a input flask get text input value get data from html text input flask get form text field flask parser input text html python flask data input flask python flask taking a form input into a function python flask input grab response data and display it in html flask flask input text python get inpuput text value from flask request reterive the word from span box html in pyhon flask flask get input for GET request.form text in flask reading number input html in flask how do we sent text from html label to flask how to take data from javascript prompt box in flask get input in flask web flask take input get text from database with spaces flask send label data to flask api taking text as POST input in flask change textbox with python flask get text from html forms in flask get text input from flask get values from HTML using flask python python flask input box html flask get text input how to get text entry flask how to make text input box in flask python python flask get value from html python flask get value from html input give input in flask api get value from input flask html flask get text from html catch textbox value and send in get flask provide address as input to flask flask a make form that takes input get html input value flask flask get html input value how to use flask input insert value in input box using flask flask input value and text different flask html get input value flask text input flask getting user input how to read html from input flask request tag in flask python flask get input text flask get values from html user input flask python flask get value from html flask app with user input form input field flask flask input how to get user inpit in html with flask take input from inputbox in flask flask app to get input from form input box for text in flask entry box flask how to get value from text field in flask how to get input from html with python flask how to make input in flask how to get value from txtbox in flask
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source