11 Jul
2001
11 Jul
'01
6:46 p.m.
Andy McKay writes:
for k, v in context.REQUEST.form.items(): if k == 'foo': # do something else: somestr = '%s&%s=%s' % (somestr, k, v) Do not forget quoting:
Query string fragments must be "urllib.quote_plus"ed. from urllib import quote_plus ..... somestr = "%s&%s=%s" % (somestr, quote_plus(k), quote_plus(v)) Dieter