【发布时间】:2011-12-16 10:42:02
【问题描述】:
我有一个 html 文件,
<html>
<body>
<form action="http://localhost/mypgm.py">
<input type="textbox" name="id" />
<input type="submit" />
</form>
</body>
</html>
在 mypgm.py 中,我必须处理在文本框中输入的值并以适当的 html 响应。 我该怎么做?
我的意思是我如何在 python 中读取 HTML 参数值??
我的系统中安装了 Python 2.3.4 和cherrypy.. 任何帮助都是最受欢迎的.. 提前谢谢..
【问题讨论】:
-
Python 2.3?如果您能够升级,非常推荐。 2.3 现在很古老了。
-
@ThomasK 我认为 OP 对 python 来说也是新的。
-
或许你应该粘贴
mypgm.py的内容。
标签: python html web cherrypy python-2.3