CGI_GetRequestMethod
<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > CGI > CGI_GetRequestMethod |
Description
Retrieves the method used in the last form tag.
Syntax
n = CGI_GetRequestMethod() As NUMBER
Returns
Return a number.
A value that indicate the las metho used, it can be one of followings:
%CGI_REQUEST_METHOD_GET
%CGI_REQUEST_METHOD_POST
Parameters
Remarks
Restrictions
See also
Examples
Dim sMethod As String
sMethod = "POST"
If CGI_GetRequestMethod = %CGI_REQUEST_METHOD_Get Then
sMethod = "GET"
End If
Echo "Last method of FORM tag was : " & sMethod