RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
MidItems.TFormMethod Enumeration

TFormMethod represents the method attribute on the <form> tag of an HTML form.

Pascal
TFormMethod = (
  fmPost,
  fmGet
);
C++
enum TFormMethod {
  fmPost,
  fmGet
};

MidItems

HTML forms include a <form> tag that distinguishes them from other types of HTML pages. This<form> tag includes a method attribute, which determines the method header of the HTTP request message that the form sends to its server. The method type corresponds to the MethodType property of the HTTP request message. 

Components that generate HTML forms use TFormMethod to specify the method attribute of the <form> tag they generate, and hence the method header of the messages that they send to the server. 

The following table describes the possible values:

Value 
Corresponding MethodType 
Meaning 
fmPost  
mtPost  
The value of the method attribute is 'post'. The form submits messages that post displayed values to the server application. Named value pairs are passed as content fields of the HTTP message.  
fmGet  
mtGet  
The value of the method attribute is 'get'. The form submits messages that request values it can display. Named value pairs are supplied as query fields in the URL.  

 

TWebRequest

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!