【发布时间】:2015-06-02 21:27:46
【问题描述】:
我有以下场景:
<form class=*** method="post" action=("main.py" ???)>
<input class=*** type="email" name="email">
<input class=*** type="submit" value=***>
</form>
此表单位于 .html 文件中,显然与 python 代码位于不同的文件中。我希望知道我必须通过哪些方式从表单中获取信息并发送到 python 文件以最终处理它(我猜是关于操作字段的内容,但不确定)。
OBS:我必须使用 webapp2(我使用的是 google 服务器,所以 django 和其他东西在它上面不起作用)
【问题讨论】: