Navigation:  thinBasic Modules > CGI >

CGI_GetRequestMethod

Previous pageReturn to chapter overviewNext page

 

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

 

CGI_GetQueryValue

 

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