Navigation: thinBasic Modules > CGI > CGI_GetQueryValue |
|
Description
Retrieves the value of specified query variable (GET or POST).
Syntax
s = CGI_GetQueryValue(sParamName, nMethod)
Returns
Return a string value.
The value of variable specified by sParamName argument.
Parameters
Name |
Type |
Optional |
Meaning |
sParamName |
String |
No |
The name of variable to query the value |
nMethod |
Number |
No |
The type of method of FORM tag allowed. It can be: %CGI_REQUEST_METHOD_GET %CGI_REQUEST_METHOD_POST
|
Remarks
Restrictions
If the method used is different from nMethod the function will fail.
See also
Examples
Dim sText As String
sText = CGI_GetQueryValue("Text", %CGI_REQUEST_METHOD_Get)
If Len(sText) Then
echo("The value of Text is : " + sText)
Else
echo("Sorry, the query var Text was not found!")
End If
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |