CGI question
Fuzzyman
fuzzyman at gmail.com
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 http://www.voidspace.org.uk/python/cgiutils.html
The cgi module handles parsing hte query string for you.
All the best,
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
More information about the Python-list
mailing list