-1

I am using flask for I website project and vould like to simply send a text (or just a string) from HTML to python. I want to do this using python and html only - no Java Script if possible. I found a lot of simmilar questions here on stackoverflow but most of them were based on python to html or html to python using JS. Any ideas ?

0

2 Answers 2

3

You can use the form to transfer the data from HTML to the flask. Make input type hidden and set value that you want to pass.

Sign up to request clarification or add additional context in comments.

Comments

1

If you want form data, then you can get it like

from flask import request
var_name = request.form['name_attr']

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.