[mod_python] mod_python and form process

Brian Akey bakey at traq.com
Thu Jan 31 09:59:37 EST 2002

You can use the regular dictionary functions of python.
form = util.FieldStorage(req)
That gets you the post information
form.keys() will give you a list of keys

fn = form.keys()
for fn1 in fn:
	req.write('keyname is ' + str(fn1) + '<br>\n')
	req.write('value is ' + str(form[fn1]) + '<br>\n')


>I need to process a form with variable number of fields.
>how to do that with mod_python?

More information about the Mod_python mailing list