follow-up to FieldStorage
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Mon Jun 5 22:09:16 EDT 2006
John Salerno a écrit :
> If I want to get all the values that are entered into an HTML form and
> write them to a file, is there some way to handle them all at the same
> time, or must FieldStorage be indexed by each specific field name?
AFAIK, FieldStorage is a somewhat dict-like object, but I'm not sure it
supports the whole dict interface. At least, it does support keys(), so
you should get by with:
for k in fs.keys():
print >> myfile, k, ":", fs[k]
But reading the doc may help...
More information about the Python-list
mailing list