HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The method attribute specifies how to send form-data (the form-data is sent to the page specified in the action attribute)."
The method
attribute specifies how to send form-data (the form-data is sent to the page specified in the
action
attribute).
The form-data can be sent as URL variables (with
method="get"
) or as HTTP post
transaction (with method="post"
).
The method
attribute can be used on the following element:
Submit a form using the "get" method:
<form
action="/action_page"
method="get">
First name: <input type="text" name="fname"><br>
Last name:
<input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>
Attribute | |||||
---|---|---|---|---|---|
method | Yes | Yes | Yes | Yes | Yes |