We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
action
method
1 parent aadac73 commit 09d44cbCopy full SHA for 09d44cb
forms.rst
@@ -755,8 +755,9 @@ Set the ``label`` option on fields to define their labels explicitly::
755
Changing the Action and HTTP Method
756
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
757
758
-By default, a form will be submitted via an HTTP POST request to the same
759
-URL under which the form was rendered. When building the form in the controller,
+By default, the ``<form>`` tag will be rendered with a ``method="post"`` attribute,
+and no ``action`` attribute, causing it to be submitted via an HTTP POST request to the same
760
+URL under which it was rendered. When building the form,
761
use the ``setAction()`` and ``setMethod()`` methods to change this::
762
763
// src/Controller/TaskController.php
0 commit comments