<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">@Thomas,<br><br>>First, you need to tell the web server to execute your Python script.<br>What you do next depends on how you've done that.<br><br>>The simplest way is probably to pub p.py in your cgi-bin directory. This<br>could be in /var/www/cgi-bin or elsewhere, like /usr/lib/cgi-bin. You<br>may need to enable CGI, check the relevant documentation (or with the<br>admin).<br><br>>When you've made sure the script is executed as a CGI script, you can<br>use the cgi module to get all the information you need.<br>http://docs.python.org/library/cgi.html<br><br>>A better way to write web applications in Python is with WSGI. You can<br>run WSGI scripts in a number of ways, including CGI and other, more<br>efficient ways that integrate with the web server. Maybe somebody else<br>knows of a good tutorial on WSGI that they'll link here, otherwise,
 I'm<br>sure Google is your friend.<br><br>I don't want to use CGI, i followed this example, this works fine, http://webpython.codepoint.net/wsgi_request_parsing_post<br><br>But the html is embeded there. But i want html form as a seperate file. How can i do it?<br><pre>form.html:
<form action="p.py" method="post">
 <input type="text" id="id_text" name="name_text" />
 <input type="submit" id="id_submit" name="name_submit" />
</form>
</pre>
Typing text when i click the submit button, browser prompts me to download the p.py file.<br>That's not what i want. I want to execute the p.py file after click. Is it possible in WSGI.<br><br>I have installed: libapache2-mod-wsgi<br><br>Any answer will be highly appreciate.<br>Thanks in advanced.<br><pre><br></pre></td></tr></table>