HTML CSS Reference/HTML Attributes Reference/method

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

"method" Example

   <source lang="html4strict">
   

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


     </source>
   
  


method is applied to

   <source lang="html4strict">

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

     </source>
   
  


"method" Syntax and Note

   <source lang="html4strict">

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>


     </source>