HTTP method Attribute
Description
The method
attribute specifies which HTTP method will
be used to send the form data to the server.
The allowed values are get
and post
,
which correspond to the HTTP GET and POST methods.
The default value for method attribute is get
.
The following code set the post
value for the form.
<form method="post" action="http://example.com/form">
For GET
requests,
you can make the same request many times.
GET
requests should be used for all read-only information retrieval.
POST
requests are for unsafe interactions,
where the act of submitting the data changes some kind of state.
POST
requests should be used for any operation that changes the application state.