An example of Python CGI
#!/usr/bin/env python print "Content-type:text/html\r\n\r\n" print '<html>' print '' print 'Hello Word - First CGI Program ' print '' print '' print 'Hello Word! This is my first CGI program
' import cgi,cgitb cgitb.enable() #for debugging form = cgi.FieldStorage() name = form.getvalue('fname') print 'Name of the user is:', name print '' print '