return a form value to python code example Example: python form html import cgi form = cgi.FieldStorage() searchterm = form.getvalue('searchbox')