#!/usr/bin/env python print "Content-type: text/html\n\n" # enable debugging import cgi,cgitb cgitb.enable() #!/usr/bin/python cgitb.enable() #for debugging form = cgi.FieldStorage() name = form.getvalue('fname') print "Name of the user is:", name