[Tutor] Help with cgi

Kalle Svensson kalle@gnupung.net
Fri, 31 Aug 2001 12:40:44 +0200


[Charlie Clark]
> Dear all,
> 
> is there a quick and easy way to deal with *all* the name/value pairs in 
> a form?

Quick and untested:

form = cgi.FieldStorage()
for key in form.keys():
    dosomething(key, form[key].value)

Peace,
  Kalle
-- 
[  kalle@gnupung.net  ][ Thought control, brought to you by the WIPO! ]
[ http://gnupung.net/ ][ http://anti-dmca.org/ http://eurorights.org/ ]