CountCGIParameters()
Syntax
Result = CountCGIParameters()Description
Returns the number of available parameters from GET or POST requests.
Parameters
None.
Return value
Returns the number of available parameters from GET or POST requests. Parameter information can be get with CGIParameterName(), CGIParameterValue() and CGIParameterType().
Example
If Not InitCGI() Or Not ReadCGI() End EndIf WriteCGIHeader(#PB_CGI_HeaderContentType, "text/html", #PB_CGI_LastHeader) ; Write the headers to inform the browser of the content format WriteCGIString("<html><title>PureBasic - parameters</title><body>" + "NbParameters: " + CountCGIParameters() + "<br><br>") WriteCGIString("</body></html>")
See Also
CGIParameterName(), CGIParameterValue(), CGIParameterType(), CGIParameterData()
Supported OS
All