CGI question

Fuzzyman fuzzyman at
Fri Jan 6 06:14:29 EST 2006

An easier way is to use the cgi module.

form = cgi.FieldStorage()

form is a dictionary like object where each key is the parameter and
each entry ahs a 'value' attribute that represents the value.

You can use the ``getform`` function from cgiutils to turn it straight
into a dictionary. See

The cgi module handles parsing hte query string for you.

All the best,


More information about the Python-list mailing list