Lecture code examples from Week 3, should be runnable on Bluehost form.html: My form

Please enter your info:

Name:
Age:
cgi-bin/hello.py: #!/usr/bin/python # Philip Guo - CSC 210 # put in public_html/cgi-bin/ and set the proper execute permissions import cgi import datetime # to facilitate debugging import cgitb cgitb.enable() form = cgi.FieldStorage() print "Content-type: text/html" # don't forget the extra newline! print print "" print "My webpage" print "" print "

Hello world!!!!!!!!

" print "

The time is: " + str(datetime.datetime.now()) + "

" print "

Your name is: " + form['my_name'].value + "

" print "

Your age is: " + form['my_age'].value + "

" print "" print ""