HTML CSS Reference/HTML Attributes Reference/method

Материал из Web эксперт
Версия от 08:20, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"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>