【发布时间】:2012-07-03 05:12:21
【问题描述】:
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...
两个文件都放在/var/www/,现在从http://example.com/form.html,如果我点击提交按钮,我会执行p.py,我怎样才能得到文本框的值?
它是安装在计算机上的 apache/httpd 网络服务器。
【问题讨论】:
标签: python forms apache post request