The idea is to have an HTML page that looks like this:
PROJECT1
Send what goes into the web form below to a python script!
_________________________________________________ ____
| Input some text! | | GO |
|_________________________________________________| |____|
When the user hits "GO", the text somehow goes into script.py that does something like the following:
script.py
webformContents = inputtedText # inputtedText comes from the HTML page and is "Hello World" in this example
# do something
So if the user inputted "Hello World"
, the chain of events (grossly oversimplified, of course) would go like this:
"Hello World"
is sent to script.py
webformContents
variable is set with the value "Hello World"
the rest of the code in script.py
is executed from the value obtained from the web form
What do I need to:
- do
- read up on
- use (do I need my files to be hosted to a web server)? etc.