#!/usr/bin/env python
import cgitb
cgitb.enable()
import cgi, os, urllib
print "Content-type: text/html"
print
print """
CGI List Example """
form = cgi.FieldStorage()
print "You selected: "
selections = form.getlist('data')
printable = [cgi.escape(x) for x in selections]
print ", ".join(printable)
print """
"""