How can i do python form post request?

gmspro gmspro at yahoo.com
Tue Jul 3 07:08:56 CEST 2012


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>

p.py:
#!/usr/bin/python

#what to write here...

Both files are put in /var/www/ , now from http://localhost/form.html, if i click the submit button would i execute the p.py  and how can i get the value of textbox?

Any answer will be highly appreciated.
Thanks in advanced.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120702/cc3d5338/attachment.html>


More information about the Python-list mailing list