#!"c:\python310\python.exe" import cgi import cgitb cgitb.enable() print("Content-Type: text/html;charset=utf-8") print() print (''' ''') form = cgi.FieldStorage() if "name" not in form or "addr" not in form: print("

Error

") print("Please fill in the name and addr fields.") quit() print("

name:", form["name"].value) print("

addr:", form["addr"].value) print (''' ''')