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