Python - Simple Example CGI
import cgi print 'Content-type: text/html\r\n' inputValue = cgi.FieldStorage() if(inputValue.has_key('variable')): print inputValue['variable'].value
DZone Snippets > whitetiger > cgi
11376 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
import cgi print 'Content-type: text/html\r\n' inputValue = cgi.FieldStorage() if(inputValue.has_key('variable')): print inputValue['variable'].value
import cgitb; cgitb.enable(display=0, logdir='/tmp')