#!/usr/bin/python3 """ runs on the server, prints HTML to create a new page; url=http://localhost/cgi-bin/server.cgi """ import os, cgi, sys debugmode = False # to help debug the script sys.stderr = sys.stdout # show error messages form = cgi.FieldStorage() # parse form data print('Content-type: text/html\n') # with blank line if debugmode: cgi.print_form(form) # print form fields in debug mode # html templates header = '''
Your information has been recorded.