questions concerning cgi.FieldStorage(keep_blank_values=1)

Daniel Lichtenberger daniel_usenet at yahoo.de
Sun Feb 20 11:54:43 EST 2005


Hi,

Jonas Meurer wrote:

> if i request the script with script.py?key1&key2=foo, it will output:
> list keys with form.keys():
> key2
> 
> any suggestions about how to make form.keys() contain the blank keys
> as well?

"key1" isn't a valid parameter, to supply an empty key you would write
script.py?key1=&key2=foo

Then cgi.FieldStorage also includes key1.

bye,
Daniel

-- 
For mail replies please use my address from 
http://perplex.schmumpf.de/
http://www.gametective.de/



More information about the Python-list mailing list