Traceback (most recent call last): File "C:/xampp2/htdocs/OFFICE_15/NEXTPAGE.cgi", line 29, in <module> print(memberId) NameError: name 'memberId' is not defined
#!C:\Python34\python.exe import cgi,cgitb def htmlTop(): print("""Content-type:text/html\n\n <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title> My Server-side template</title> </head> <body>""") def htmlTail(): print(""" its done</body> </html>""") def getData(): form = cgi.FieldStorage() memberId = form.getvalue('memberId') memberId = memberId return memberId #main program if __name__== "__main__": try: htmlTop() print(memberId) htmlTail() except: cgi.print_exception()
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE