use python file for action in html forms code example
Example: python form html
import cgi
form = cgi.FieldStorage()
searchterm = form.getvalue('searchbox')
import cgi
form = cgi.FieldStorage()
searchterm = form.getvalue('searchbox')