title: Bare bones web form example using python3 & mod_wsgi (no Django)?
body: <p>I have an apache + mod_wsgi + python3.1 setup. (Plain, no Django or other framework.) I can write apps that output HTML, but I can't seem to get a basic web form + POST parser to work so I can also handle input. I've found some examples online that are several years old and use python2, and several pages describing the "issues you should be aware of" with python3 that make the python2 examples obsolete (long list of encoding issues new to python3, etc.)</p>
  
  <p>Would anyone happen to have python3 code ("def application(environ, start_response):...") that puts up a small UTF-8 web form with a couple of short menus that, when you submit (POST) it, puts those UTF-8 menu choices into python3 strings? A python3 script that handles the issues properly regarding telling it the right number of bytes to read from the request, doesn't munge the UTF-8 for non-ASCII chars, doesn't use deprecated functions, etc., that can be used as a bare-bones template by people trying to use mod_wsgi + python3 for input as well as output?</p>