Skip to content
PHP Ecosystem
Explore

Method

API reference › HTML › Form › Values › Method

enumUIAwesome\Html\Form\Values\Method
Backed bystring
Sourcesrc/Form/Values/Method.php

Represents values for the HTML method attribute of the <form> element.

See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/form#method.

CaseValueDescription
DIALOG'dialog'Represents the dialog token. When the form is inside a <dialog>, closes the dialog and causes a submit event to be fired on submission, without submitting data or clearing the form.
GET'get'Represents the get token. The form data is appended to the action URL with a ? separator. This is the default value.
POST'post'Represents the post token. The form data is sent as the request body.