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 > fieldstorage
12374 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