I don't have much knowledge with web development so I want to make this very basic. I have a python project with a very simple website that has two text fields and a "submit" button. When the button is pressed I want it to run the python program with the user's arguments. I have a single page index.html with the website and below to launch the python web server:
import http.server
import socketserver
PORT = 8080
Handler = http.server.SimpleHTTPRequestHandler
with socketserver.TCPServer(("", PORT), Handler) as httpd:
print("serving at port", PORT)
httpd.serve_forever()
What is the easiest way to run python scripts when the "Submit" button is clicked?