按照the Django book上面的例子写了一个表单处理程序, 有点问题,帮忙给看看!
<!DOeCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<title>Html Test</title>
<html>
<body>
<br>
<label>phone num</label>
<input type="text" id="phoneNum" name="phoneNum" value="" style="width: 100px"/>
<br>
<form action="." method="Get">
<label for="m">msg</label>
<input type="text" mame="m" value="{{msg|escape}}" style="width: 500">
<input type="submit" name = "send" value="send"class="button" >
</form>
{% if msg %}
<p>{{ msg|escape}</p>
{% else %}
<p>no msg</p>
{% endif %}
</body>
</html>
def hello(request):
msg = request.GET.get("m", "")
return render_to_response("test.html", {"msg", msg})