summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Käufl <bottlepy@c.michael-kaeufl.de>2013-07-26 18:31:31 +0200
committerMichael Käufl <bottlepy@c.michael-kaeufl.de>2013-07-26 18:31:31 +0200
commitb7ef72b9ca945e51ee2835e4043c8a367398e2c9 (patch)
tree91d64025c21bbd4b868e28999b60d10b6fc3da1f
parent9f178413c0d46c06683691674b8679d6268a30b0 (diff)
downloadbottle-b7ef72b9ca945e51ee2835e4043c8a367398e2c9.tar.gz
docs: Make html example consistent with the according python code.
-rwxr-xr-xdocs/tutorial.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tutorial.rst b/docs/tutorial.rst
index c8b8c71..5e4bb0e 100755
--- a/docs/tutorial.rst
+++ b/docs/tutorial.rst
@@ -597,9 +597,9 @@ Let us start from the beginning. In HTML, a typical ``<form>`` looks something l
.. code-block:: html
<form action="/login" method="post">
- <input type="text" name="login" />
- <input type="password" name="password" />
- <input type="submit" value="Login" />
+ Login: <input type="text" name="login" />
+ Password: <input type="password" name="password" />
+ <input type="submit" value="Login" />
</form>
The ``action`` attribute specifies the URL that will receive the form data. ``method`` defines the HTTP method to use (``GET`` or ``POST``). With ``method="get"`` the form values are appended to the URL and available through :attr:`BaseRequest.query` as described above. This is considered insecure and has other limitations, so we use ``method="post"`` here. If in doubt, use ``POST`` forms.