Python: how to show results on a web page?
<p>Most likely it's a dumb question for those who knows the answer, but I'm a beginner, and here it goes:</p>

<p>I have a Python script which I run in a command-line with some parameter, and it prints me some results. Let's say results are some HTML code.</p>

<p>I never done any Python programming for web, and couldn't figure it out... I need to have a page (OK, I know how to upload files to a server, Apache is running, Python is installed on the server...) with an edit field, which will accept that parameter, and Submit button, and I need it to "print" the results on a web page after the user submitted a proper parameter, or show any output that in a command-line situation are printed.</p>

<p>I've read Dive Into Python's chapters about "HTML Processing" and "HTTP Web Services", but they do not describe what I'm looking for.</p>

<p>If the answer isn't short, I would very much appreciate links to the more relevant stuff to read or maybe the key words to google for it.</p>
