summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Junod <frederic.junod@camptocamp.com>2012-07-17 15:36:44 +0200
committerFrederic Junod <frederic.junod@camptocamp.com>2012-07-17 15:36:44 +0200
commitd0d3ba7e5198053873673b086ac4d52b3e7c1f8c (patch)
treee1baae08467aed25a0cb695df65666bec8bd9538
parente4294a327855c5b522db686b91f54cca6be7e54b (diff)
downloadbottle-d0d3ba7e5198053873673b086ac4d52b3e7c1f8c.tar.gz
tutorial: add missing form action and submit input (closes #335)
-rwxr-xr-xdocs/tutorial.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/tutorial.rst b/docs/tutorial.rst
index d0cf2ab..9c1bccb 100755
--- a/docs/tutorial.rst
+++ b/docs/tutorial.rst
@@ -203,9 +203,10 @@ The POST method is commonly used for HTML form submission. This example shows ho
@get('/login') # or @route('/login')
def login_form():
- return '''<form method="POST">
+ return '''<form method="POST" action="/login">
<input name="name" type="text" />
<input name="password" type="password" />
+ <input type="submit" />
</form>'''
@post('/login') # or @route('/login', method='POST')