#!/usr/bin/env python
import cgi
print "Content-Type: text/html\n"
form = cgi.FieldStorage()
name = form.getvalue("username","NN")
print("<html><head><title>A CGI script</title></head>")
print("<body><h2>Hello "+name+"</h2></body></html>")

This code is part of the book "Python for Bioinformatics", by Sebastian Bassi (sbassi@genesdigitales.com). Return to home page.