HTML form method Attribute
HTML <form> tag
Definition and Usage
The method attribute specifies method to use to send the form data to the
specified URL.
The form data is sent to the page specified in the action attribute.
Syntax
<form method="send_method">
|
Syntax Example
Attribute Values
Value |
Description |
get |
Default. This method sends the form contents in the URL: URL?name=value&name=value.
Note: If the form values contains non-ASCII characters or
exceeds 100
characters you MUST use method="post". |
post |
This method sends the form contents in the body of the
request. Note: Browsers are
unable to bookmark post requests. |
Browser Support

The attribute is supported in all major browsers.
Tips and Notes
Note: When using the get method, form names and values are displayed
in the URL. So this method should not be used when sending passwords or other
sensitive information!
Example
<form action="demo_form_method.asp" method="get">
First name:
<input type="text" name="FirstName" value="Peter" />
<br />
Last name:
<input type="text" name="LastName" value="Griffin" />
<br />
<input type="submit" value="Submit" />
</form>
|
Try-It-Yourself Demos
form method
attribute example using GET
Send form data with the GET method.
form
method attribute example using POST
Send form data with the POST method.
HTML <form> tag
Learn how your website performs under various load conditions
 |
|
WAPT
is a load, stress and performance testing tool for websites and web-based applications.
In contrast to "800-pound gorilla" load testing tools, it is designed to minimize the learning
curve and give you an ability to create a heavy load from a regular workstation.
WAPT is able to generate up to 3000 simultaneously acting virtual users using standard hardware configuration.
Virtual users in each profile are fully customizable. Basic and NTLM authentication methods are supported.
Graphs and reports are shown in real-time at different levels of detail, thus helping to manage the testing process.
Download the free 30-day trial!
|
|