HTML CSS Reference/HTML Attributes Reference/method — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Версия 09:21, 26 мая 2010

"method" Example

    
<HTML>
<head><Title>Example For method</Title></head>
<BODY>
<form name="form1" method="post" action="">
   <input type="text" cols=50 size=50 value="This is one element of the form.">
</form>   
</BODY>
</HTML>



method is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<form>                                                        |
+----------------+--------------------------------------------------------------+



"method" Syntax and Note

Note:
    
This attribute defines how to send the form data to the server. 
Possible values are get and post.
The get method appends the form input elements and their data to the underlying URL. 
The get method can be useful when dealing with small amounts of data.
URL length is limited to 2,048 bytes. 
The post method sends the data via an HTTP post transaction.
There is no limititatio using this method.
    
Syntax:
    
<form method="value"> . . . </form>